Re: [Dextrose] ip route in rc.sysinit

2010-08-11 Thread Bernie Innocenti
El Wed, 11-08-2010 a las 07:41 +1000, James Cameron escribió: I agree with Bernie. I've used /etc/rc.local on previous builds to achieve the same result, though with NetworkManager disabled. You do not *need* the IP default route to be able to do as you suggest, so perhaps there is another

Re: [Dextrose] ip route in rc.sysinit

2010-08-11 Thread Esteban Bordon
2010/8/10 Bernie Innocenti ber...@codewiz.org El Tue, 10-08-2010 a las 09:17 -0300, Esteban Bordon escribió: The script try to connect to the Access Point that have the better signal using iwlist, iwconfig and dhclient. If dhclient return 0 it executes ip route to obtain the server IP and

Re: [Dextrose] ip route in rc.sysinit

2010-08-11 Thread Esteban Bordon
2010/8/10 Bernie Innocenti ber...@codewiz.org El Tue, 10-08-2010 a las 09:17 -0300, Esteban Bordon escribió: The script try to connect to the Access Point that have the better signal using iwlist, iwconfig and dhclient. If dhclient return 0 it executes ip route to obtain the server IP and

Re: [Dextrose] ip route in rc.sysinit

2010-08-11 Thread Esteban Bordon
I found the problem. I was using dhclient eth0 -T 20 but the timeout parameter now is -timeout timeout. Thanks for your help! cheers, Esteban. 2010/8/11 Esteban Bordon ebor...@plan.ceibal.edu.uy 2010/8/10 Bernie Innocenti ber...@codewiz.org El Tue, 10-08-2010 a las 09:17 -0300, Esteban

Re: [Dextrose] ip route in rc.sysinit

2010-08-11 Thread James Cameron
On Wed, Aug 11, 2010 at 07:45:34AM -0400, Bernie Innocenti wrote: DHCP always get the IP at the first try with iwlagn (Intel) and ath9k (Atheros) cards. Overall, it's a lot faster than NetworkManager, which makes me wonder where the extra time is being spent... Indeed. If you would like to

Re: [Dextrose] ip route in rc.sysinit

2010-08-10 Thread Bernie Innocenti
El Tue, 10-08-2010 a las 09:17 -0300, Esteban Bordon escribió: The script try to connect to the Access Point that have the better signal using iwlist, iwconfig and dhclient. If dhclient return 0 it executes ip route to obtain the server IP and it download a few files. If you set all the access

Re: [Dextrose] ip route in rc.sysinit

2010-08-10 Thread James Cameron
I agree with Bernie. I've used /etc/rc.local on previous builds to achieve the same result, though with NetworkManager disabled. You do not *need* the IP default route to be able to do as you suggest, so perhaps there is another need for it that you have not described. I have found that a small

Re: [Dextrose] ip route in rc.sysinit

2010-08-09 Thread Bernie Innocenti
El Mon, 09-08-2010 a las 16:33 -0300, Esteban Bordon escribió: Hi all, I have a script that execute ip route to get the default gateway. If I run the script when sugar has started works fine, but, I need to run it during boot. I added a line in rc.sysinit calling it, but ip route doesn't

Re: [Dextrose] ip route in rc.sysinit

2010-08-09 Thread Esteban Bordon
If I call the script in rc.local (after NetworkManager starts), could I force to activate NetworkManager? Esteban Bordón Investigación y Desarrollo - Plan Ceibal CITS - Av. Italia 6201 - Montevideo, Uruguay 2010/8/9 Bernie Innocenti ber...@codewiz.org El Mon, 09-08-2010 a las 16:33 -0300,

Re: [Dextrose] ip route in rc.sysinit

2010-08-09 Thread Jon Nettleton
El Mon, 09-08-2010 a las 16:33 -0300, Esteban Bordon escribió: Hi all, I have a script that execute ip route to get the default gateway. If I run the script when sugar has started works fine, but, I need to run it during boot. I added a line in rc.sysinit calling it, but ip route