#!/bin/sh
# Echo make sure that no modules for internal WLAN (ipw2100) are loaded

MODULES="ipw2100
         firmware_class
         ieee80211
         ieee80211_crypt"

for mod in $MODULES ; do
    if lsmod | grep -q -w "^$mod" ; then
	 sudo rmmod -v $mod
    else
        echo Modul $mod ist nicht geladen.
    fi
done
