From: Mike Baker Date: Sun, 11 Jul 2004 23:01:01 +0000 (+0000) Subject: handle missing wan_ifname X-Git-Tag: reboot~33621 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a33ddbdadc55fa390ae20e36c8d0f00deadfa9ab;p=openwrt%2Fopenwrt.git handle missing wan_ifname SVN-Revision: 87 --- 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" +}