Code Sample |
#!/bin/bash # shell script to start wireless networking with WPA2 # with DSL 3.3 and Atheros 5212 based mini-PCI card. # May 11, 2007 # The original Atheros kernel modules need to be removed. # They don't work with WPA/WPA2 probably due to incompatible versions. rmmod ath_pci rmmod ath_rate_sample rmmod ath_hal # Start the ndiswrapper driver using Atheros' Windows drivers. # Print a confirmation message that the drivers are loaded. ndiswrapper -i /cdrom/net5211.inf ndiswrapper -l # Insert the ndiswrapper driver in the kernel # First remove any leftover ndiswrapper drivers. modprobe -r ndiswrapper modprobe ndiswrapper sleep 5 # Now start wpa_supplicant with the configuration file wpa_supplicant -B -Dndiswrapper -i wlan0 -c /cdrom/wpa_supplicant.conf # Obtain an IP address pump -i wlan0 |