Script to connect to internet at bootup

Olivier Cailloux olivier.cailloux at gmail.com
Sat Mar 5 15:05:20 UTC 2011


Le 04/03/2011 21:55, Colin Law a écrit :
> On 4 March 2011 19:48, Olivier Cailloux<olivier.cailloux at gmail.com>  wrote:
>>   ...
>> Well I didn't configure anything special, just installed ubuntu, never
>> touched the network configuration. It works flawlessly once I'm
>> authenticated, and I can authenticate with the same script when run manually
>> after boot and log in. I guess it's only a timing problem, i.e. my network
>> is indeed not up yet (or at least the part related to DNS resolving) when
>> the script is run by cron but it is if I manually run the script after
>> having logged in.
>>
>> Also the script works if I set a delay of 15 seconds before running it. But
>> I'd like to find some clean way of configuring this, that is, I'd like to be
>> able to specify to run the script only when "everything needed" (meaning, I
>> guess: the DNS system) is ready. That's why I thought I'd use the dependency
>> mechanism of init.d (see above the original post), but there may exist
>> better approaches.
> Have you got 'Available to all users' ticked for your network
> connection?  Otherwise the network will not be up till after you
> login.  Right click on the NM applet>  Edit Connections>  select the
> network and Edit.
It is ticked.
> If you can't find another solution you might like to look at WICD
> rather than Network Manager.  It has the ability to specify scripts to
> run after the connection comes up, so you could do your authentication
> there.
Thanks for that suggestion. However I'll try to explore less drastic 
solutions first...
Olivier

> Colin
>





More information about the ubuntu-users mailing list