Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2001 10:20:10 -0800 (PST)
From:      Bob Zoller <bob@kludgebox.com>
To:        freebsd-questions@freebsd.org, <freebsd-stable@freebsd.org>
Subject:   rc.network diff
Message-ID:  <Pine.BSO.4.40.0111060956530.25359-100000@kludgebox.com>

next in thread | raw e-mail | index | archive | help
When my computer boots, it tries to use DHCP to assign xl0 (built in
ethernet) an IP.  Often times I am not using a physical cable, but rather
using my wireless pcmcia card.  The problem is while dhclient is sitting
there waiting to timeout (I ususally hit Ctrl-C), the wireless card gets
attached and fails to get an IP address (because.. I assume.. dhclient is
already running for xl0).

I wrote a patch to rc.network that fixes this.  Quite simply, it doesn't
bother running dhclient on an interface that is listed with a status of
"no carrier" (ie no network plugged in).

Now when I boot (no hardwire, wireless inserted), rc.network sees that xl0
isn't plugged in, skips trying to run dhclient, and proceeds to boot.
When pccardd attaches my wireless card, it starts right up and grabs an IP
address sucessfully.

http://www.kludgebox.com/rc.network.diff

Not sure if this will help anyone else.. but it works for me!  Also handy
for speeding up the boot of machines that use DHCP but aren't always
plugged in.

--Bob

PS.. I'm not subscribed to either list, so please reply to my email
directly.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSO.4.40.0111060956530.25359-100000>