2 # This file handles the NVRAM quirks of various hardware
3 # this is not a replacement for nvram.
5 # linksys bug has lan doing dhcp; force static
8 # failsafe if reset is held
9 [ "$FAILSAFE" = "true" ] && {
10 echo "### FAILSAFE MODE ####"
12 lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
13 lan_ipaddr="192.168.1.1"
14 lan_netmask="255.255.255.0"
15 lan_hwaddr="00:0B:AD:0A:DD:00"
20 # hacks for 1.x hardware
21 [ "$(nvram get boardnum)" = "42" ] && \
22 [ "$(nvram get boardtype)" = "bcm94710dev" ] && {
23 debug "### 1.x hardware hack ###"
27 # we remap old device names to new
28 # it's recommended that you continue to
29 # use the old names to preserve backwards
32 eval $1=\"$(nvram_get $1 | awk 'gsub("eth0","vlan2") gsub("eth1","vlan1")')\"
44 [ -z "$(nvram_get lan_ifname)" ] && {
46 lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
49 [ -z "$(nvram_get wan_ifname)" ] && {