Corrected missing unused ifname as suggested in #200, definitively closes #200
[openwrt.git] / openwrt / target / linux / package / base-files / files / brcm-2.6 / etc / init.d / S05netconfig
index 57e6ba1..0cafa17 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 [ -e /etc/config/network ] && exit 0
 
+mkdir -p /etc/config
+
 (
        if [ "$(/usr/bin/head -c4 /dev/mtdblock/1 | /usr/bin/tail -c3)" = "ELF" ]; then
                # WGT634u
@@ -55,8 +57,9 @@ END {
        # WAP54G
        if ((nvram["boardnum"] == "2") || \
                (nvram["boardnum"] == "1024")) {
-               c["lan_ifnames"]="eth0 eth1"
+               c["lan_ifnames"]="eth1 eth2"
                c["wan_ifname"]=""
+               c["unused_ifnames"]="eth0"
        }
 
        print "#### VLAN configuration "
@@ -76,6 +79,7 @@ END {
        print "# lan_gateway=\"192.168.1.1\""
 
        print ""
+       p("unused_ifnames")
        print ""
 
        print "#### WAN configuration"
This page took 0.026602 seconds and 4 git commands to generate.