#!/bin/sh 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