Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Very slow bringing up network devices when network absent
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Reformist
Guru
Guru


Joined: 06 Oct 2002
Posts: 323

PostPosted: Wed Mar 17, 2004 3:20 am    Post subject: Very slow bringing up network devices when network absent Reply with quote

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
View user's profile Send private message
KingTaco
Developer
Developer


Joined: 22 Aug 2003
Posts: 207
Location: Bay Area, CA

PostPosted: Wed Mar 17, 2004 3:40 am    Post subject: Reply with quote

are you using dhcp? if so, it can take up to two minutes to wait for dhcp to timeout.
_________________
Explaining the obvious to the oblivious.
Adopt an unanswered post today -- https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
sparks
Guru
Guru


Joined: 05 Mar 2003
Posts: 331
Location: Nashville, TN

PostPosted: Wed Mar 17, 2004 4:43 am    Post subject: Reply with quote

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
View user's profile Send private message
waydaws
n00b
n00b


Joined: 15 Mar 2004
Posts: 17
Location: Vancouver, BC Canada

PostPosted: Wed Mar 17, 2004 6:21 am    Post subject: Reply with quote

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
View user's profile Send private message
ezman
n00b
n00b


Joined: 22 Jan 2004
Posts: 9
Location: NorthWestern U.S.

PostPosted: Wed Mar 17, 2004 4:09 pm    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum