Gentoo Archives: gentoo-user

From: michael@×××××××××××××.com
To: gentoo-user@l.g.o
Subject: [gentoo-user] Can I make dhcpcd run in background when trying to get an ip address?
Date: Sun, 25 Sep 2005 05:03:40
Message-Id: Pine.LNX.4.61.0509242040170.15069@mail.magrittesystems.com
1 I have a computer with both a wired and wireless network card. At home I
2 use the wired connection, but when out I use the wireless.
3
4 Normally, I use the default net.eth0 for my wired connection, and my own
5 script for wireless :
6
7 ifconfig eth1 up
8 iwconfig eth1 essid "foo"
9 dhcpcd eth1
10
11 If I enable them both using rc-update, then if one isn't available (I
12 only plug in the wired network when I know wireless is not available)
13 the init process will wait until the dhcpcd times out, which is quite
14 long (and it needs to be, because some access points seem to take a
15 long time).
16
17 Is there some way I can have dhcpcd to run in the background, and to
18 provide an IP address to my interface when it gets a response from the
19 server? I seem to remember busybox had script that did this; is there a
20 general solution?
21
22 Thanks,
23 Michael
24 --
25 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Can I make dhcpcd run in background when trying to get an ip address? Iain Buchanan <iaindb@××××××××××××.au>