ramips: Fix alphabetical sorting for 02_network
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
This commit is contained in:
parent
39f035fdc7
commit
1570277094
@ -239,6 +239,17 @@ ramips_setup_macs()
|
|||||||
local wan_mac=""
|
local wan_mac=""
|
||||||
|
|
||||||
case $board in
|
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|\
|
bc2|\
|
||||||
broadway|\
|
broadway|\
|
||||||
d105|\
|
d105|\
|
||||||
@ -258,13 +269,6 @@ ramips_setup_macs()
|
|||||||
lan_mac=$(macaddr_setbit_la "$lan_mac")
|
lan_mac=$(macaddr_setbit_la "$lan_mac")
|
||||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||||
;;
|
;;
|
||||||
all0239-3g|\
|
|
||||||
carambola|\
|
|
||||||
freestation5|\
|
|
||||||
w502u|\
|
|
||||||
wnce2001)
|
|
||||||
wan_mac=$(mtd_get_mac_binary factory 46)
|
|
||||||
;;
|
|
||||||
br-6475nd)
|
br-6475nd)
|
||||||
lan_mac=$(cat /sys/class/net/eth0/address)
|
lan_mac=$(cat /sys/class/net/eth0/address)
|
||||||
wan_mac=$(mtd_get_mac_binary devdata 7)
|
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)
|
[ -n "$lan_mac" ] || lan_mac=$(cat /sys/class/net/eth0/address)
|
||||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||||
;;
|
;;
|
||||||
a5-v11|\
|
|
||||||
ht-tm02)
|
|
||||||
lan_mac=$(cat /sys/class/net/eth0/address)
|
|
||||||
;;
|
|
||||||
linkits7688 | \
|
linkits7688 | \
|
||||||
linkits7688d)
|
linkits7688d)
|
||||||
wan_mac=$(mtd_get_mac_binary factory 4)
|
wan_mac=$(mtd_get_mac_binary factory 4)
|
||||||
|
Loading…
Reference in New Issue
Block a user