X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=inline;f=root%2Fetc%2Fnvram.overrides;h=e334d75198793f1970adcbc219dd324741608925;hb=3da2e35354f5d2fd2c21691fd72155bd645c3836;hp=45097fce46aac8ce02d4e1314a1c6be43f34fde7;hpb=0c6600a2f517f0bed44d35c7c982235fc04d2f26;p=openwrt-10.03%2F.git diff --git a/root/etc/nvram.overrides b/root/etc/nvram.overrides index 45097fce4..e334d7519 100644 --- a/root/etc/nvram.overrides +++ b/root/etc/nvram.overrides @@ -1,5 +1,6 @@ # NVRAM overrides # This file handles the NVRAM quirks of various hardware +# this is not a replacement for nvram. # linksys bug has lan doing dhcp; force static lan_proto="static" @@ -44,3 +45,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" +}