Fixed network autoconfiguration as explained in #200, fixes #200
[openwrt.git] / target / linux / package / base-files / files / brcm-2.6 / etc / init.d / S05netconfig
index 57e6ba1..3c4c032 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,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"]=""
        }
 
@@ -76,6 +78,7 @@ END {
        print "# lan_gateway=\"192.168.1.1\""
 
        print ""
+       p("unused_ifnames")
        print ""
 
        print "#### WAN configuration"
This page took 0.024982 seconds and 4 git commands to generate.