3 # Copyright 2007 Luis R. Rodriguez <lrodriguez@atheros.com>
5 # Makes sure either iwlagn (new) or iwl4965 (old)
6 # is enabled to be used. This allows us to choose any driver without
7 # blacklisting each other.
9 . /usr/lib/compat-wireless/modlib.sh
11 if [[ $UID -ne 0 ]]; then
12 echo "Run with root privileges"
19 # Appended to module file at the end when we want to ignore one
20 USAGE="Usage: $0 [ $IWL_NEW | $IWL_OLD ]"
22 function enable_iwlagn {
23 module_disable $IWL_OLD
29 # Default behavior: disables the old iwl4965 driver and enables iwlagn
33 elif [ $# -ne 1 ]; then
39 if [ "$MODULE" == "iwl4965" ]; then
40 module_disable $IWL_NEW
41 module_enable $IWL_OLD
42 elif [ "$MODULE" == "iwlagn" ]; then