diff options
author | John Crispin <blogic@openwrt.org> | 2013-08-01 14:31:04 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-08-01 14:31:04 +0000 |
commit | 64ad8ac32dfa98ba1ae39fd5812e6b83a0bbc416 (patch) | |
tree | 3b15a207c48052ba14db54d613c9e82f91db7561 /target/linux/ramips/base-files/lib | |
parent | c956dee4dbb4296bda2112efddbb08f8bc2c5715 (diff) | |
download | master-187ad058-64ad8ac32dfa98ba1ae39fd5812e6b83a0bbc416.tar.gz master-187ad058-64ad8ac32dfa98ba1ae39fd5812e6b83a0bbc416.tar.bz2 master-187ad058-64ad8ac32dfa98ba1ae39fd5812e6b83a0bbc416.zip |
ramips: add Poray X5/X6 Support
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37638 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r-- | target/linux/ramips/base-files/lib/preinit/06_set_iface_mac | 3 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/ramips.sh | 3 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/upgrade/platform.sh | 3 |
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 f9aabd5c4e..30732339f1 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 @@ -76,7 +76,8 @@ preinit_set_mac_address() { ifconfig eth0 hw ether $mac 2>/dev/null ;; m3 |\ - m4) + m4 |\ + x5) 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 e3776f1304..1bf93e30bf 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -154,6 +154,9 @@ ramips_board_detect() { *"Poray M4") name="m4" ;; + *"Poray X5") + name="x5" + ;; *"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 5e1a7a5651..4b80afa966 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -75,7 +75,8 @@ platform_check_image() { whr-g300n |\ ur-326n4g |\ ur-336un |\ - wr512-3gn) + wr512-3gn |\ + x5) [ "$magic" != "27051956" ] && { echo "Invalid image type." return 1 |