summaryrefslogtreecommitdiffstats
path: root/openwrt/package/base-files/default
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/base-files/default')
-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 187b937c6..b63eba090 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
}