summaryrefslogtreecommitdiffstats
path: root/openwrt/target/default
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-30 16:37:03 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-30 16:37:03 +0000
commit3b76d11447518a2a4202fcef79b6712ef1c8c2a2 (patch)
tree134c3ef71ff03ab09638f93456f752ee57ae951a /openwrt/target/default
parent5c1fa1ec03cbfdf76f1e6c0b3cf226173626aa70 (diff)
don't override wan_ifname, if it's correct (eg. pppoe)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@479 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/default')
-rw-r--r--openwrt/target/default/target_skeleton/etc/nvram.overrides4
1 files changed, 3 insertions, 1 deletions
diff --git a/openwrt/target/default/target_skeleton/etc/nvram.overrides b/openwrt/target/default/target_skeleton/etc/nvram.overrides
index 82c15900e..094db457b 100644
--- a/openwrt/target/default/target_skeleton/etc/nvram.overrides
+++ b/openwrt/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