diff options
author | Florian Fainelli <florian@openwrt.org> | 2006-01-11 16:13:25 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2006-01-11 16:13:25 +0000 |
commit | adcbbc4934ffabd2c25e8002807de0ccbcde4bd3 (patch) | |
tree | c2c8a415d0b3274d07de4987ce576d6f15896faf | |
parent | e9df50f1b6c5033d154859c10206931230b5b278 (diff) | |
download | mtk-20170518-adcbbc4934ffabd2c25e8002807de0ccbcde4bd3.zip mtk-20170518-adcbbc4934ffabd2c25e8002807de0ccbcde4bd3.tar.gz mtk-20170518-adcbbc4934ffabd2c25e8002807de0ccbcde4bd3.tar.bz2 |
Fixed network autoconfiguration as explained in #200, fixes #200
SVN-Revision: 2912
-rw-r--r-- | openwrt/package/base-files/default/etc/hotplug.d/net/10-net | 3 | ||||
-rwxr-xr-x | openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/etc/hotplug.d/net/10-net b/openwrt/package/base-files/default/etc/hotplug.d/net/10-net index 187b937..b63eba0 100644 --- a/openwrt/package/base-files/default/etc/hotplug.d/net/10-net +++ b/openwrt/package/base-files/default/etc/hotplug.d/net/10-net @@ -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 } diff --git a/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig b/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig index 27336e1..3c4c032 100755 --- a/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig +++ b/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig @@ -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" |