projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
356271a
)
handle condition where lan_ifname is unset (nvram reset)
author
Mike Baker
<mbm@openwrt.org>
Mon, 10 May 2004 02:57:59 +0000
(
02:57
+0000)
committer
Mike Baker
<mbm@openwrt.org>
Mon, 10 May 2004 02:57:59 +0000
(
02:57
+0000)
SVN-Revision: 22
root/etc/nvram.overrides
patch
|
blob
|
history
diff --git
a/root/etc/nvram.overrides
b/root/etc/nvram.overrides
index 058ce708edd05c1c840d4f08adfa5eb38abed9e4..45097fce46aac8ce02d4e1314a1c6be43f34fde7 100644
(file)
--- 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"
+}