resync with kamikaze
[openwrt.org/openwrt.git] / target / linux / package / base-files / files / brcm-2.4 / etc / hotplug.d / net / 09-net
blob:a/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net -> blob:b/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net
--- a/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net
+++ b/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net
@@ -1,5 +1,5 @@
 #!/bin/sh
-setup_eth()
+setup_wl()
 {
 	[ -f /proc/net/wl0 ] && {
 		lsmod | grep wlcompat >&- || insmod wlcompat
@@ -7,6 +7,9 @@
 	iwconfig "$INTERFACE" 2>&- | grep -v 'no wireless' >&- && {
 		/sbin/wifi
 	}
+}
+setup_eth()
+{
 	[ -d /proc/switch ] || {
 		insmod switch-core
 		insmod switch-robo || insmod switch-adm
@@ -30,6 +33,7 @@
 {
 	case "${INTERFACE%%[0-9]*}" in
 		eth) setup_eth;;
+		wl) setup_wl;;
 	esac
 }
 

comments