wl1251-modules: Tweak the init script a little to stop trying to unload MAC80211...
[openpandora.oe.git] / recipes / pandora-system / wl1251-modules / rc.wl1251
index 9e1783e..b39b056 100755 (executable)
@@ -7,16 +7,7 @@ d_stop() {
        if `grep -q wl1251 /proc/modules` ; then
                rmmod wl1251_sdio
                rmmod wl1251
-               rmmod board-omap3pandora-wifi
-       fi
-       if `grep -q mac80211 /proc/modules` ; then
-               rmmod mac80211
-               rmmod cfg80211
-               rmmod rfkill_backport
-               rmmod lib80211_crypt_ccmp
-               rmmod lib80211_crypt_wep
-               rmmod lib80211_crypt_tkip
-               rmmod lib80211
+               # rmmod board-omap3pandora-wifi
        fi
 }
 
@@ -25,21 +16,21 @@ d_start() {
        insmod $(busybox find /lib/modules/$(uname -r) -name "arc4.ko")
        insmod $(busybox find /lib/modules/$(uname -r) -name "ecb.ko")
        insmod $(busybox find /lib/modules/$(uname -r) -name "pcbc.ko")
-       insmod $(busybox find /lib/modules/$(uname -r) -name "rfkill_backport.ko")
-       insmod $(busybox find /lib/modules/$(uname -r) -name "cfg80211.ko")
-       insmod $(busybox find /lib/modules/$(uname -r) -name "mac80211.ko")
-       insmod $(busybox find /lib/modules/$(uname -r) -name "lib80211.ko")
-       insmod $(busybox find /lib/modules/$(uname -r) -name "lib80211_crypt_tkip.ko")
-       insmod $(busybox find /lib/modules/$(uname -r) -name "lib80211_crypt_wep.ko")
-       insmod $(busybox find /lib/modules/$(uname -r) -name "lib80211_crypt_ccmp.ko")
-       insmod $(busybox find /lib/modules/$(uname -r) -name "wl1251.ko")
-       insmod $(busybox find /lib/modules/$(uname -r) -name "wl1251_sdio.ko")
+       insmod $(busybox find /lib/modules/$(uname -r)/updates -name "rfkill_backport.ko")
+       insmod $(busybox find /lib/modules/$(uname -r)/updates -name "cfg80211.ko")
+       insmod $(busybox find /lib/modules/$(uname -r)/updates -name "mac80211.ko")
+       insmod $(busybox find /lib/modules/$(uname -r)/updates -name "lib80211.ko")
+       insmod $(busybox find /lib/modules/$(uname -r)/updates -name "lib80211_crypt_tkip.ko")
+       insmod $(busybox find /lib/modules/$(uname -r)/updates -name "lib80211_crypt_wep.ko")
+       insmod $(busybox find /lib/modules/$(uname -r)/updates -name "lib80211_crypt_ccmp.ko")
+       insmod $(busybox find /lib/modules/$(uname -r)/updates -name "wl1251.ko")
+       insmod $(busybox find /lib/modules/$(uname -r)/updates -name "wl1251_sdio.ko")
 }
 
 case "$1" in
   start)
        echo -n "Starting $DESC: $NAME"
-       d_start
+       d_start &
        echo "."
        ;;
   stop)