aboutsummaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2004-05-10 02:57:59 +0000
committerMike Baker <mbm@openwrt.org>2004-05-10 02:57:59 +0000
commita154d2f72efb4fdfc2409398bd034950010ee5bf (patch)
tree2f3c5a3c172a1ce7e94da20bd57327023756e670 /root
parentf0f9457b3709092bbb68a100a1268a8c1457bdd7 (diff)
downloadupstream-a154d2f72efb4fdfc2409398bd034950010ee5bf.tar.gz
upstream-a154d2f72efb4fdfc2409398bd034950010ee5bf.tar.bz2
upstream-a154d2f72efb4fdfc2409398bd034950010ee5bf.zip
handle condition where lan_ifname is unset (nvram reset)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'root')
-rw-r--r--root/etc/nvram.overrides7
1 files changed, 6 insertions, 1 deletions
diff --git a/root/etc/nvram.overrides b/root/etc/nvram.overrides
index 058ce708edd..45097fce46a 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"
+}