diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-07-11 23:01:01 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-07-11 23:01:01 +0000 |
commit | 95ee1891275a7020ce00ca448639a418f0dfe638 (patch) | |
tree | 7abf76e8f9a6e14d10051051ddf06c635dad234e | |
parent | f9d657cb5c648b235d8442e44bcebf3150986828 (diff) |
handle missing wan_ifname
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@87 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | root/etc/nvram.overrides | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/root/etc/nvram.overrides b/root/etc/nvram.overrides index 45097fce46..e155df15a2 100644 --- a/root/etc/nvram.overrides +++ b/root/etc/nvram.overrides @@ -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" +} |