I had problems starting wpa_supplicant through the /etc/init.d/net.* scripts, while it started perfectly if ran with /etc/init.d/wpa_supplicant. In particular, the /lib/rcscripts/net.modules.d/wpa_supplicant exited with * wpa_supplicant has exited unexpectedly [ !! ] When commenting out the related check, i.e. if ! wpa_cli -i${iface} status &>/dev/null ; then eend 1 "wpa_supplicant has exited unexpectedly" return 1 fi the script more or less worked, printing out the error: Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory After some debugging with lu_zero, I found out that a simple "sleep 1" before the check above fixes the problem. However I'm reporting it for a more permanent fix if any ;) Reproducible: Always Steps to Reproduce:
I think that wpa_supplicant should not return until the socket has been created if there is no error starting up. I dislike sleeps - how long should we sleep for? Ditto loops that check for socket.
is this why it won't start for 2.6.13?
It starts just fine on my gentoo-sources-2.6.13 on amd64
Closing as UPSTREAM.