X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/78341629c4a2f13eeff799361308dd12f9b7044d..95ee1891275a7020ce00ca448639a418f0dfe638:/root/etc/nvram.overrides diff --git a/root/etc/nvram.overrides b/root/etc/nvram.overrides index 058ce708e..e155df15a 100644 --- a/root/etc/nvram.overrides +++ b/root/etc/nvram.overrides @@ -6,7 +6,7 @@ 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 +39,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" +}