mrdek11
September 13th, 2008, 11:37 PM
My router operates using WPA. Unable to find any other way to connect via the ubuntu terminal for my Hardy server, I followed a tutorial, and developed this script to run at startup:
iwconfig ath0 essid peterson
wpa_supplicant -iath0 -c/etc/wpa_supplicant.conf -B
dhclient -d ath0
Once it gets to dhclient, it binds to an address, and dhclient hangs. It never exits. Ctrl+C doesn't help. I can SSH in, and do everything I want to do, so this normally isn't a problem, but I think some of my startup scripts aren't running because of the hang.
In case it matters, the contents of /etc/wpa_supplicant.conf are:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
ssid="peterson"
psk="mywepkey"
priority=5
}
Does anybody know what is wrong?
Thank you for your time and help!
iwconfig ath0 essid peterson
wpa_supplicant -iath0 -c/etc/wpa_supplicant.conf -B
dhclient -d ath0
Once it gets to dhclient, it binds to an address, and dhclient hangs. It never exits. Ctrl+C doesn't help. I can SSH in, and do everything I want to do, so this normally isn't a problem, but I think some of my startup scripts aren't running because of the hang.
In case it matters, the contents of /etc/wpa_supplicant.conf are:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
ssid="peterson"
psk="mywepkey"
priority=5
}
Does anybody know what is wrong?
Thank you for your time and help!