handle missing wan_ifname
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 11 Jul 2004 23:01:01 +0000 (23:01 +0000)
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 11 Jul 2004 23:01:01 +0000 (23:01 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@87 3c298f89-4303-0410-b956-a3cf2f4a3e73

root/etc/nvram.overrides

index 45097fc..e155df1 100644 (file)
@@ -44,3 +44,8 @@ lan_proto="static"
   lan_ifname="br0"
   lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
 }
+
+[ -z "$(nvram_get wan_ifname)" ] && {
+   wan_ifname="vlan1"
+   wan_proto="dhcp"
+}
This page took 0.025822 seconds and 4 git commands to generate.