summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/etc
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-01-11 16:13:25 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-01-11 16:13:25 +0000
commitadcbbc4934ffabd2c25e8002807de0ccbcde4bd3 (patch)
treec2c8a415d0b3274d07de4987ce576d6f15896faf /openwrt/package/base-files/default/etc
parente9df50f1b6c5033d154859c10206931230b5b278 (diff)
downloadmtk-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
Diffstat (limited to 'openwrt/package/base-files/default/etc')
-rw-r--r--openwrt/package/base-files/default/etc/hotplug.d/net/10-net3
1 files changed, 3 insertions, 0 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
}