summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-05-10 02:57:59 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-05-10 02:57:59 +0000
commit0c6600a2f517f0bed44d35c7c982235fc04d2f26 (patch)
tree2f3c5a3c172a1ce7e94da20bd57327023756e670
parent9e3c857810f24ecda194771ee2ac15f0a140b5f1 (diff)
handle condition where lan_ifname is unset (nvram reset)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 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"
+}