3 # Copyright 2007 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
5 # Makes sure either b43, b43legacy (new mac80211 drivers) or bcm43xx
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"
20 # Appended to module file at the end when we want to ignore one
21 USAGE="Usage: $0 [ b43 | bcm43xx | wl ]"
24 module_disable $B43_OLD
25 module_disable $B43_PROP
31 # Default behavior: disables the old bcm43xx driver and enables b43
36 elif [ $# -ne 1 ]; then
42 if [ "$MODULE" == "bcm43xx" ]; then
46 module_disable $B43_PROP
47 module_enable $B43_OLD
48 elif [ "$MODULE" == "wl" ]; then
52 module_disable $B43_OLD
53 module_enable $B43_PROP
54 elif [ "$MODULE" == "b43" ]; then