From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EJP9L-0006XF-EV for garchives@archives.gentoo.org; Sun, 25 Sep 2005 05:34:07 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j8P5Qd83006056; Sun, 25 Sep 2005 05:26:39 GMT Received: from mail.netspace.net.au (cumulus.netspace.net.au [203.10.110.72]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j8P5N4nH001381 for <gentoo-user@lists.gentoo.org>; Sun, 25 Sep 2005 05:23:05 GMT Received: from orpheus (dsl-203-113-239-194.SA.netspace.net.au [203.113.239.194]) by mail.netspace.net.au (Postfix) with ESMTP id E5DEA7BEDF for <gentoo-user@lists.gentoo.org>; Sun, 25 Sep 2005 15:29:38 +1000 (EST) Subject: Re: [gentoo-user] Can I make dhcpcd run in background when trying to get an ip address? From: Iain Buchanan <iaindb@netspace.net.au> To: gentoo-user@lists.gentoo.org In-Reply-To: <Pine.LNX.4.61.0509242040170.15069@mail.magrittesystems.com> References: <Pine.LNX.4.61.0509242040170.15069@mail.magrittesystems.com> Content-Type: text/plain Date: Sun, 25 Sep 2005 15:00:01 +0930 Message-Id: <1127626201.29381.9.camel@orpheus> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: fe80fae5-b58e-4944-aa1f-e981b36be6dd X-Archives-Hash: 32e753228ab3b164e14409f51971d965 On Sat, 2005-09-24 at 20:52 -0700, michael@michaelshiloh.com wrote: > I have a computer with both a wired and wireless network card. At home I > use the wired connection, but when out I use the wireless. [snip] > Is there some way I can have dhcpcd to run in the background, and to > provide an IP address to my interface when it gets a response from the > server? I seem to remember busybox had script that did this; is there a > general solution? The first thing that comes to mind is to set RC_PARALLEL_STARTUP="yes" in /etc/conf.d/rc However, lots of things rely on the net.* scripts before they start. Have a look at the output of `egrep need.*net /etc/init.d/*` and you'll see every service that will wait for your network script to start (which means waiting for a dhcp response) The second thing that came to my mind, and this would probably rely on you only getting a dhcp for the wireless, and not the wired lan, would be to "roll your own" /etc/init.d/net.eth1 script. Make it exactly the same as /etc/init.d/net.lo, but in the depend() function, add something like "provide mywireless". This, coupled with parallel startup, should mean that no other init script will require your net.eth1 connection and it can take time without holding other scripts up. I've never tried this idea, so it could be fundamentally flawed, but its just a thought! HTH, -- Iain Buchanan <iaindb@netspace.net.au> -- gentoo-user@gentoo.org mailing list