[gobolinux-users] Gobolinux and ipw3945

Andy Feldman nereusren at gmail.com
Sun Nov 4 05:49:13 NZDT 2007


On Saturday 03 November 2007 11:15, Daniele Maccari wrote:
> Then I have a BootUp scripts that looks like the following:
> Daemon ipw3945d
> LoadModules (the command which load user-defined modules)
> Exec "Starting WPA service..." wpa_supplicant -B -w -i eth1 -c
> /System/Settings/wpa_supplicant.conf -D wext
> StartTask Network (the command which start the network)
[...]
> Despite all this I constantly get a "Network initialization failed"
> error on boot, even if when I look for each component to be started I
> have the module loaded, the daemon running, and so wpa_supplicant.

Maybe the wpa supplicant needs some time to start up before you can initialize 
the network. I had to put a short sleep after mine to make it work 
consistently. Also, I put my wpa_supplicant command in /S/S/NetworkOptions by 
defining a pre-up function:

function ath0_PreUp() {
   echo "Enabling WPA Supplicant, please wait..."
   wpa_supplicant -i ath0 -c /System/Settings/wpa_supplicant.conf -D wext -B
   sleep 5s #this gives the supplicant time to initialize
}

function ath0_PostDown() {
   wpa_cli -i ath0 terminate 1>/dev/null
}

If you want to keep it in your BootUp script instead, you could just 
add ";sleep 5s" to the end of the wpa_supplicant line. See if that delay 
helps at all.

-Andy


More information about the gobolinux-users mailing list