Code Sample |
# load ndiswrapper if D-link DWL-G650 B2 detected card_id="Atheros Communications, Inc. AR5212 802.11abg NIC" result=`lspci | grep "$card_id"` if [ -n "$result" ]; then echo echo "Found $card_id" # card found, check for a driver now driver_present=`ndiswrapper -l | grep net5211` if [ -z "$driver_present" ]; then echo "net5211 driver not found... download a correct driver from:" echo "http://ndiswrapper.sourceforge.net/mediawiki/index.php/List"; else echo "...loading ndiswrapper" modprobe ndiswrapper echo "...re-sending dhcp request" sleep 5 pump -i wlan0& fi fi |