diff options
author | Luka Perkov <luka@openwrt.org> | 2016-05-10 22:37:07 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-06-19 19:33:57 +0200 |
commit | 21e9ab7e0d9e76a11abad55bd5b3ad55f5717279 (patch) | |
tree | 513e8c0417d2d6c99d660f15c3dd28a8781f039b /target/linux/ramips/base-files/etc | |
parent | 638a058c1276325b92902f5d634abc527e8feb34 (diff) | |
download | master-187ad058-21e9ab7e0d9e76a11abad55bd5b3ad55f5717279.tar.gz master-187ad058-21e9ab7e0d9e76a11abad55bd5b3ad55f5717279.tar.bz2 master-187ad058-21e9ab7e0d9e76a11abad55bd5b3ad55f5717279.zip |
ramips: Fix alphabetical sorting for 02_network
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49351 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/02_network | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 36b7b76008..e7826d48b0 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -239,6 +239,17 @@ ramips_setup_macs() local wan_mac="" case $board in + a5-v11|\ + ht-tm02) + lan_mac=$(cat /sys/class/net/eth0/address) + ;; + all0239-3g|\ + carambola|\ + freestation5|\ + w502u|\ + wnce2001) + wan_mac=$(mtd_get_mac_binary factory 46) + ;; bc2|\ broadway|\ d105|\ @@ -258,13 +269,6 @@ ramips_setup_macs() lan_mac=$(macaddr_setbit_la "$lan_mac") wan_mac=$(macaddr_add "$lan_mac" 1) ;; - all0239-3g|\ - carambola|\ - freestation5|\ - w502u|\ - wnce2001) - wan_mac=$(mtd_get_mac_binary factory 46) - ;; br-6475nd) lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(mtd_get_mac_binary devdata 7) @@ -282,10 +286,6 @@ ramips_setup_macs() [ -n "$lan_mac" ] || lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(macaddr_add "$lan_mac" 1) ;; - a5-v11|\ - ht-tm02) - lan_mac=$(cat /sys/class/net/eth0/address) - ;; linkits7688 | \ linkits7688d) wan_mac=$(mtd_get_mac_binary factory 4) |