aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-08-01 14:31:09 +0000
committerJohn Crispin <john@openwrt.org>2013-08-01 14:31:09 +0000
commitce4228b41708ddc3a76d81c5837b619071585a99 (patch)
tree19207117a74e39ac3e4f090bcc67e823a5383bc3 /target/linux/ramips/base-files/lib
parent54968110f119a4aa7e9e536f6c2a4a3a973607ea (diff)
downloadupstream-ce4228b41708ddc3a76d81c5837b619071585a99.tar.gz
upstream-ce4228b41708ddc3a76d81c5837b619071585a99.tar.bz2
upstream-ce4228b41708ddc3a76d81c5837b619071585a99.zip
ramips: add Poray X8 support
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> SVN-Revision: 37639
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh3
3 files changed, 7 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
index 30732339f1..6712154dc4 100644
--- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
+++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
@@ -77,7 +77,8 @@ preinit_set_mac_address() {
;;
m3 |\
m4 |\
- x5)
+ x5 |\
+ x8)
mac=$(mtd_get_mac_binary factory 4)
mac=$(macaddr_add "$mac" -1)
ifconfig eth0 hw ether $mac 2>/dev/null
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 1bf93e30bf..6960c6d401 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -157,6 +157,9 @@ ramips_board_detect() {
*"Poray X5")
name="x5"
;;
+ *"Poray X8")
+ name="x8"
+ ;;
*"PWH2004")
name="pwh2004"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 4b80afa966..df3b32479d 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -76,7 +76,8 @@ platform_check_image() {
ur-326n4g |\
ur-336un |\
wr512-3gn |\
- x5)
+ x5 |\
+ x8)
[ "$magic" != "27051956" ] && {
echo "Invalid image type."
return 1