# Pre-Load 2 Modules to be able to load ath5/9k correct case $drv in ath[59]k|rtl8187|b43|b43legacy) do_modprobe ecb do_modprobe arc4 ;; esac case $drv in b43|b43legacy) do_modprobe mac80211 ;; esac # Get list of already loaded cfg80211 wlan devices if [ -n "`grep cfg80211 /proc/modules`" ] then oldphy=`iw list | sed -n 's/^Wiphy //p'` oldwlan=`ip link show | sed -n 's/^[0-9]\{1,\}: \([a-z]\{2,\}[0-9]\{1,\}\).*/\1/p'` else oldphy='' oldwlan="$oldeth" fi