handle condition where lan_ifname is unset (nvram reset)
SVN-Revision: 22
This commit is contained in:
parent
356271aaa4
commit
f12c13a833
1 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,7 @@ lan_proto="static"
|
|||
|
||||
# failsafe if reset is held
|
||||
[ "$FAILSAFE" = "true" ] && {
|
||||
debug "### FAILSAFE MODE ####"
|
||||
echo "### FAILSAFE MODE ####"
|
||||
lan_ifname="br0"
|
||||
lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
|
||||
lan_ipaddr="192.168.1.1"
|
||||
|
@ -39,3 +39,8 @@ lan_proto="static"
|
|||
remap wan_ifnames
|
||||
remap pppoe_ifname
|
||||
}
|
||||
|
||||
[ -z "$(nvram_get lan_ifname)" ] && {
|
||||
lan_ifname="br0"
|
||||
lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue