[gobolinux-users] Gobolinux and ipw3945
Daniele Maccari
gobo.users at gmail.com
Sun Nov 4 07:17:05 NZDT 2007
Thanks for the help, I'm going to try it out just now :D
I didn't know about the preup and postdown functions, good to know :p
Just out of curiosity, what does the command in your postdown do?
Bye
Andy Feldman ha scritto:
> 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
> _______________________________________________
> gobolinux-users mailing list
> gobolinux-users at lists.gobolinux.org
> http://lists.gobolinux.org/mailman/listinfo/gobolinux-users
>
>
More information about the gobolinux-users
mailing list