Fixed network autoconfiguration as explained in #200, fixes #200

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2912 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Florian Fainelli 2006-01-11 16:13:25 +00:00
parent ce4cde8a93
commit a0f7416c53
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,9 @@
#!/bin/sh
setup_eth()
{
for part in $(nvram get unused_ifnames); do
[ "$part" = "$INTERFACE" ] && return 0
done
[ -f /proc/net/wl0 ] && {
lsmod | grep wlcompat >&- || insmod wlcompat
}

View File

@ -57,7 +57,7 @@ END {
# WAP54G
if ((nvram["boardnum"] == "2") || \
(nvram["boardnum"] == "1024")) {
c["lan_ifnames"]="eth0 eth1"
c["lan_ifnames"]="eth1 eth2"
c["wan_ifname"]=""
}
@ -78,6 +78,7 @@ END {
print "# lan_gateway=\"192.168.1.1\""
print ""
p("unused_ifnames")
print ""
print "#### WAN configuration"