aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/default/target_skeleton/etc/nvram.overrides4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/default/target_skeleton/etc/nvram.overrides b/target/default/target_skeleton/etc/nvram.overrides
index 82c15900ea..094db457b2 100644
--- a/target/default/target_skeleton/etc/nvram.overrides
+++ b/target/default/target_skeleton/etc/nvram.overrides
@@ -65,7 +65,9 @@ NVRAM_lan_proto="static"
NVRAM_vlan0hwname="et0"
NVRAM_vlan1hwname="et0"
NVRAM_lan_ifnames="vlan0 eth1"
- NVRAM_wan_ifname="vlan1"
+ [ "$(nvram get wan_ifname)" = "eth0.1" ] && {
+ NVRAM_wan_ifname="vlan1"
+ }
}
# defaults if lan_ifname is missing