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