12345678910111213141516171819202122232425262728293031323334353637 |
- #!/bin/bash
- set -e
- NOHWCRYPT="ath5k ath9k ath9k_htc rt2800usb carl9170 b43 p54common rt2500usb rt2800pci rt73usb"
- SWCRYPTO="iwlwifi iwl3945 iwl4965"
- HWCRYPTO="ipw2200"
- rm /etc/modprobe.d/nohwcrypt.conf 2> /dev/null || true
- for MODULE in $NOHWCRYPT
- do echo "options $MODULE nohwcrypt=1" >> /etc/modprobe.d/nohwcrypt.conf; done
- for MODULE in $SWCRYPTO
- do echo "options $MODULE swcrypto=1" >> /etc/modprobe.d/nohwcrypt.conf; done
- for MODULE in $HWCRYPTO
- do echo "options $MODULE hwcrypto=0" >> /etc/modprobe.d/nohwcrypt.conf; done
- for MODULE in $NOHWCRYPT $SWCRYPTO $HWCRYPTO
- do rmmod $MODULE 2> /dev/null || true; done
- echo "Hardware decryption disabled. Reboot your computer."
|