diff options
| author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-05-30 19:38:38 +0000 | 
|---|---|---|
| committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-05-30 19:38:38 +0000 | 
| commit | be8ad0190d689eb7f797bdc0618d7e87892a831d (patch) | |
| tree | eb392a5dc848616550a5c47b5a2481f8e6b8bc1f /target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net | |
| parent | e240cc0ea62aa7404ccf6187cc95cf6370212bef (diff) | |
resync with kamikaze
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3844 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net')
| -rw-r--r-- | target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git 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 index 856d26b65..9dd77963b 100644 --- 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 @@ setup_eth()  	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 @@ do_register()  {  	case "${INTERFACE%%[0-9]*}" in  		eth) setup_eth;; +		wl) setup_wl;;  	esac  }  | 
