qualcommax: cleanup network script indent
Cleanup 02_network script indentation. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Link: https://github.com/openwrt/openwrt/pull/17970 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
f138507683
commit
b6fa124bdf
2 changed files with 23 additions and 23 deletions
|
@ -7,10 +7,10 @@ ipq50xx_setup_interfaces()
|
||||||
{
|
{
|
||||||
local board="$1"
|
local board="$1"
|
||||||
case $board in
|
case $board in
|
||||||
linksys,mx2000|\
|
linksys,mx2000|\
|
||||||
linksys,mx5500)
|
linksys,mx5500)
|
||||||
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,12 +22,12 @@ ipq50xx_setup_macs()
|
||||||
local label_mac=""
|
local label_mac=""
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
linksys,mx2000|\
|
linksys,mx2000|\
|
||||||
linksys,mx5500)
|
linksys,mx5500)
|
||||||
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
||||||
lan_mac=$label_mac
|
lan_mac=$label_mac
|
||||||
wan_mac=$label_mac
|
wan_mac=$label_mac
|
||||||
ucidef_set_network_device_mac eth0 $label_mac
|
ucidef_set_network_device_mac eth0 $label_mac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -83,21 +83,21 @@ ipq807x_setup_macs()
|
||||||
local label_mac=""
|
local label_mac=""
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
linksys,mx4200v2|\
|
linksys,mx4200v2|\
|
||||||
linksys,mx4300)
|
linksys,mx4300)
|
||||||
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
||||||
[ "$(mtd_get_mac_ascii u_env eth1addr)" != "$label_mac" ] && wan_mac=$label_mac
|
[ "$(mtd_get_mac_ascii u_env eth1addr)" != "$label_mac" ] && wan_mac=$label_mac
|
||||||
[ "$(mtd_get_mac_ascii u_env eth2addr)" != "$label_mac" ] && lan_mac=$label_mac
|
[ "$(mtd_get_mac_ascii u_env eth2addr)" != "$label_mac" ] && lan_mac=$label_mac
|
||||||
;;
|
;;
|
||||||
linksys,mx8500)
|
linksys,mx8500)
|
||||||
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
||||||
lan_mac=$(macaddr_add $label_mac 1)
|
lan_mac=$(macaddr_add $label_mac 1)
|
||||||
wan_mac=$label_mac
|
wan_mac=$label_mac
|
||||||
;;
|
;;
|
||||||
tplink,eap620hd-v1|\
|
tplink,eap620hd-v1|\
|
||||||
tplink,eap660hd-v1)
|
tplink,eap660hd-v1)
|
||||||
label_mac=$(get_mac_binary /tmp/factory_data/default-mac 0)
|
label_mac=$(get_mac_binary /tmp/factory_data/default-mac 0)
|
||||||
lan_mac=$label_mac
|
lan_mac=$label_mac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue