What I hope to accomplish: To start my wireless connection automatically at boot.
What I've done:
- Appended the following to /etc/sysconfig/network-scripts/ifup-wireless
Code:
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf &
dhclient wlan0
- I can manually start my wireless by using ifup wlan0
Problems I've encountered, and would also like to resolve:
- Simply starting the wpa_supplicant service through 'service wpa_supplicant start' does not seem to work. The service starts, but the connection is not established.
- I have to run 'dhclient wlan0' to get my DHCP address. Sometimes, running it directly after 'wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf' it tells me dhclient is already running. I have to kill the running process, then rerun dhclient to get my address. I don't think this is related to the fact that I run dhclient in ifup-wireless, because the same happens if I just run "wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf"