diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-08-01 14:31:09 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-08-01 14:31:09 +0000 |
commit | 6bce4d5867016525d07d39a79dbdc4540ce62e2e (patch) | |
tree | 8c844745c7e80aa654468e3404e0f98414a475c1 /target/linux/ramips/base-files | |
parent | 82099b43199b4440373ae8bb81c0675770a37a68 (diff) |
ramips: add Poray X8 support
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37639 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
5 files changed, 12 insertions, 3 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index d04d990665..689fee7104 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -141,6 +141,9 @@ get_status_led() { x5) status_led="x5:green:power" ;; + x8) + status_led="x8:green:power" + ;; xdxrn502j) status_led="xdxrn502j:green:power" ;; diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index fa5b28ea95..2df7b0842b 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -228,7 +228,8 @@ ramips_setup_macs() m3 |\ m4 |\ - x5) + x5 |\ + x8) lan_mac=$(mtd_get_mac_binary factory 4) lan_mac=$(macaddr_add "$lan_mac" -1) ;; 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 |