echo Running iwl-enable iwlagn...;\
$(DESTDIR)/usr/sbin/iwl-enable iwlagn ;\
fi
+ @if [ $(shell modinfo iwlagn > /dev/null 2>&1 && echo 1) ] \
+ && [ $(shell modinfo iwlwifi > /dev/null 2>&1 && echo 1) ]; then \
+ echo ;\
+ echo -n "Note: iwlagn detected, we're going to disable it. " ;\
+ echo "If you would like to enable it later you can run:" ;\
+ echo " sudo iwl-load iwlagn" ;\
+ echo ;\
+ echo Running iwl-enable iwlwifi...;\
+ $(DESTDIR)/usr/sbin/iwl-enable iwlwifi ;\
+ fi
@if [ $(shell modinfo atl1c > /dev/null 2>&1 && echo 1) ]; then \
echo ;\
echo -n "Note: atl1c detected, we're going to disable it. " ;\
IWL_OLD="iwl4965"
# Appended to module file at the end when we want to ignore one
-USAGE="Usage: $0 [ $IWL_NEW | $IWL_OLD ]"
+USAGE="Usage: $0 [ $IWL_NEW | $IWL_OLD | iwlwifi ]"
+
+function enable_iwlwifi {
+ for i in $IWL_OLD $IWL_NEW; do
+ module_disable $i
+ done
+ module_enable iwlwifi
+}
function enable_iwlagn {
module_disable $IWL_OLD
module_enable $IWL_OLD
elif [ "$MODULE" == "iwlagn" ]; then
enable_iwlagn
+elif [ "$MODULE" == "iwlwifi" ]; then
+ enable_iwlwifi
else
echo "$USAGE"
exit
MODULES="$MODULES orinoco_cs orinoco_nortel orinoco_pci orinoco_plx"
MODULES="$MODULES orinoco_tld orinoco_usb spectrum_cs orinoco"
MODULES="$MODULES b43 b44 b43legacy brcm80211 ssb"
-MODULES="$MODULES iwl3945 iwlagn iwlcore"
+MODULES="$MODULES iwl3945 iwlwifi iwlagn iwlcore"
MODULES="$MODULES ath9k ath9k_htc ath9k_common ath9k_hw "
MODULES="$MODULES ath5k ath ath6kl ar9170usb carl9170"
MODULES="$MODULES p54pci p54usb p54spi p54common"
MODULES="$MODULES orinoco_cs orinoco_nortel orinoco_pci orinoco_plx"
MODULES="$MODULES orinoco_tld orinoco_usb spectrum_cs orinoco"
MODULES="$MODULES b43 b44 b43legacy brcm80211 ssb"
-MODULES="$MODULES iwl3945 iwlagn iwlcore"
+MODULES="$MODULES iwl3945 iwlwifi iwlagn iwlcore"
MODULES="$MODULES ath9k ath9k_htc ath9k_common ath9k_hw "
MODULES="$MODULES ath5k ath ath6kl ar9170usb carl9170"
MODULES="$MODULES p54pci p54usb p54spi p54common"