X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=root%2Fetc%2Fnvram.overrides;h=e334d75198793f1970adcbc219dd324741608925;hb=f6ea7efa4b6dae8de844bb6bc1bcf6e52e375ba0;hp=058ce708edd05c1c840d4f08adfa5eb38abed9e4;hpb=78341629c4a2f13eeff799361308dd12f9b7044d;p=openwrt-10.03%2F.git diff --git a/root/etc/nvram.overrides b/root/etc/nvram.overrides index 058ce708e..e334d7519 100644 --- a/root/etc/nvram.overrides +++ b/root/etc/nvram.overrides @@ -1,12 +1,13 @@ # 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" # 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 +40,13 @@ lan_proto="static" remap wan_ifnames remap pppoe_ifname } + +[ -z "$(nvram_get lan_ifname)" ] && { + lan_ifname="br0" + lan_ifnames="vlan0 vlan2 eth1 eth2 eth3" +} + +[ -z "$(nvram_get wan_ifname)" ] && { + wan_ifname="vlan1" + wan_proto="dhcp" +}