1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 07:44:04 +02:00

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
This commit is contained in:
kaloz 2005-03-30 16:37:03 +00:00
parent 5c1fa1ec03
commit 3b76d11447

View File

@ -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