# ------------------------------------------------- # # wifimng # # Load/unload the ipw2100 when running ifup/ifdown. # # Copyright 2004, Loic d'Anterroches # # ------------------------------------------------- # # Edit /etc/network/interfaces and run this script # as pre-up and post-down command. # See `man interfaces` for more details. if /sbin/lsmod | sed -e '/^ipw2100/s/^ipw2100.*/1/' -e '/[^1]/d' | grep -q 1 then if [[ $MODE = "stop" ]] then echo "Remove ipw2100" /sbin/rmmod ipw2100 fi else if [[ $MODE = "start" ]] then echo "Load ipw2100" /sbin/modprobe ipw2100 fi fi