From: mbm Date: Mon, 10 May 2004 02:57:59 +0000 (+0000) Subject: handle condition where lan_ifname is unset (nvram reset) X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=0c6600a2f517f0bed44d35c7c982235fc04d2f26;p=openwrt-10.03%2F.git handle condition where lan_ifname is unset (nvram reset) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/root/etc/nvram.overrides b/root/etc/nvram.overrides index 058ce708e..45097fce4 100644 --- a/root/etc/nvram.overrides +++ b/root/etc/nvram.overrides @@ -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" +}