3
# Copyright 2007 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
5
# Makes sure either ath5k or MadWifi are ready to be used. This allows
6
# us to choose any driver without blacklisting each other.
8
. /usr/lib/compat-wireless/modlib.sh
10
if [[ $UID -ne 0 ]]; then
11
echo "Run with root privileges"
18
# Appended to module file at the end when we want to ignore one
19
IGNORE_SUFFIX=".ignore"
20
USAGE="Usage: $0 [ ath5k | madwifi ]"
22
# Default behavior: disables any MadWifi driver present and makes sure
25
module_disable $MADWIFI
29
elif [ $# -ne 1 ]; then
35
if [ "$MODULE" == "ath5k" ]; then
36
module_disable $MADWIFI
39
elif [ "$MODULE" == "madwifi" ]; then
42
module_enable $MADWIFI