summaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-11 16:13:25 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-11 16:13:25 +0000
commit97c71e562b95953d2391743167112314f01315ee (patch)
treebe2b836f6daefd7e7bf717666906a27d4c2e35ec /package/base-files
parent2c74298f7cbb59ba44fc7d692baed554687df4a6 (diff)
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
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/default/etc/hotplug.d/net/10-net3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/base-files/default/etc/hotplug.d/net/10-net b/package/base-files/default/etc/hotplug.d/net/10-net
index 187b937c6..b63eba090 100644
--- a/package/base-files/default/etc/hotplug.d/net/10-net
+++ b/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
}