andrei_r
Group: Members
Posts: 5
Joined: Dec. 2005 |
|
Posted: Dec. 07 2005,18:36 |
|
Well, I guess there is no clean way to do it, so if you need to identify and pre-load your ndiswrapper-supported wireless PCMCIA card, you can modify the following script and insert in into your /opt/bootlocal.sh
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
|
|