View previous topic :: View next topic |
Author |
Message |
Reformist Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/4432e87e3dec2c57b6b0c.gif)
Joined: 06 Oct 2002 Posts: 323
|
Posted: Wed Mar 17, 2004 3:20 am Post subject: Very slow bringing up network devices when network absent |
|
|
I have a laptop with wireless ethernet (this problem also applies to regular ethernet connections). I have the wlan service set to start up upon boot. When I boot and am not connected to a network, the stage of "bringing up wlan0" (or eth0) just sits there, for about 2 minutes, until it finally fails.
This is out of wack, especially for laptops, which you would want the system to pick up an existing network automatically upon boot, and yet also boot quickly when a network isn't present.
Is there any way to set a timeout for the network script somewhere, or somehow start this service in parallel so that if it takes a long time realizing nothing is there, the system will still be accessible (i.e. quickly show a login prompt)? _________________ -Phil Crosby |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
KingTaco Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/gallery/Southpark/avatar40.gif)
Joined: 22 Aug 2003 Posts: 207 Location: Bay Area, CA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sparks Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/16521437040c02c886e15f.gif)
Joined: 05 Mar 2003 Posts: 331 Location: Nashville, TN
|
Posted: Wed Mar 17, 2004 4:43 am Post subject: |
|
|
the only way that I have figured out how to bypass this on my laptop is to not add wlan0 to any runlevel. I just do an /etc/init.d/wlan0 start after I have set my ssid/wep and such. _________________ True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
waydaws n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Mar 2004 Posts: 17 Location: Vancouver, BC Canada
|
Posted: Wed Mar 17, 2004 6:21 am Post subject: |
|
|
How about setting up grub or lilo to boot with a Network and No Network setting. You boot with a variable set up, and the kernal passes it to the init scripts?
I saw this somewhere where they set up a shell variable called PROFILE. Let me see if I can find it again...
Right, this is it: http://www.linuxgazette.com/issue20/laptop.html |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ezman n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Monkey2.gif)
Joined: 22 Jan 2004 Posts: 9 Location: NorthWestern U.S.
|
Posted: Wed Mar 17, 2004 4:09 pm Post subject: |
|
|
I assume you are using dhcp;
from `man dhcpcd` Quote: | -t <timeout> specifies (in seconds) for how long dhcpcd will try to get an IP address. The default is 60 seconds. |
If my assumption is correct edit your /etc/conf.d/net script and add to the line Code: | dhcpcd_eth0="-t seconds_you_are_willing_to_wait" | this should make the process less aggrevating. _________________ Happy Gentoo Convert ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|