# 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"
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"
+}