[gobolinux-users] Gobolinux and ipw3945

Daniele Maccari gobo.users at gmail.com
Sun Nov 4 08:28:19 NZDT 2007


Very good indeed, I'll put them in my NetworkOptions too, if you agree, 
of course :D
Anyway I think I find out what the problem is: the dhcp. In fact using a 
static configuration does not give any problem, apart from a "Network 
unreacheable", but that depends on my ignorance about the gateway and 
dns settings :D

I've looked at the messages log and found that sudo tries to execute 
dhcpcd but then it fails with a timeout error. The really weird fact is 
that everything works perfectly if I run the command manually. I don't 
know what to think.

Bye

Andy Feldman ha scritto:
> On Saturday 03 November 2007 13:17, Daniele Maccari wrote:
>   
>> 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?
>>     
>
> It just ends wpa_supplicant the nice way. If you kill the process directly, it 
> leaves behind a lock file and won't start again until you remove it. Before I 
> learned about wpa_cli I needed these two lines instead:
>
> killall wpa_supplicant
> rm -rf /var/run/wpa_supplicant
>
> The post-down function needs to be there because otherwise the pre-up function 
> will keep trying to run new instances of wpa_supplicant every time I bring 
> the interface up.
>
> Having those two functions instead of putting a single wpa_supplicant line in 
> BootUp means when I do StopTask Network and StartTask Network, it is also 
> stopping and restarting the wpa_supplicant. When I was experimenting with the 
> supplicant settings I found this much more convenient than restarting it as a 
> spearate step in betwen bringing the interface down and up.
>
> -Andy
>
>   
>> Andy Feldman ha scritto:
>> [...] 
>>     
>>> 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
>>> }
>>>       
> _______________________________________________
> 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