mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:16:16 +02:00
handle condition where lan_ifname is unset (nvram reset)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9e3c857810
commit
0c6600a2f5
@ -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 New Issue
Block a user