diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2005-03-30 16:37:03 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2005-03-30 16:37:03 +0000 |
commit | aaa599667a0178ef53cc1ab46ac59267d0a41720 (patch) | |
tree | 134c3ef71ff03ab09638f93456f752ee57ae951a /openwrt/target | |
parent | 75cfa3112752d645c315f0383bd2a00572e9c296 (diff) | |
download | mtk-20170518-aaa599667a0178ef53cc1ab46ac59267d0a41720.zip mtk-20170518-aaa599667a0178ef53cc1ab46ac59267d0a41720.tar.gz mtk-20170518-aaa599667a0178ef53cc1ab46ac59267d0a41720.tar.bz2 |
don't override wan_ifname, if it's correct (eg. pppoe)
SVN-Revision: 479
Diffstat (limited to 'openwrt/target')
-rw-r--r-- | openwrt/target/default/target_skeleton/etc/nvram.overrides | 4 |
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 82c1590..094db45 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 |