- insmod $(busybox find /lib/modules/$(uname -r)/updates -name "rfkill_backport.ko")
- insmod $(busybox find /lib/modules/$(uname -r)/updates -name "compat.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 "compat_firmware_class.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 "arc4.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")
+ if ! lsmod | grep -q mac80211 ; then
+ insmod $(busybox find /lib/modules/$(uname -r)/updates -name "rfkill_backport.ko")
+ insmod $(busybox find /lib/modules/$(uname -r)/updates -name "compat.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 "compat_firmware_class.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 "arc4.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")
+ fi