cvs commit: src/etc Makefile network.subr src/etc/rc.d hostname netif network1 nisdomain

Nate Lawson nate at root.org
Tue Apr 22 23:46:55 PDT 2003


On Wed, 23 Apr 2003, Martin Blapp wrote:
> Nate wrote:
> > One more request is to make dhclient immediately go into the background if
> > there is no link on an interface.  I have a small local patch that enables
> > this and it would be great to see this functionality in the tree.  It does
> > an ifconfig | grep status: on each interface in the loop if it is enabled
> > for dhcp.  If there is no link, it starts dhclient in the background
> > since you are guaranteed that it will time out eventually.  This fixes
> > booting my laptop while traveling.
> 
> Please don't do it that way. The option -nw is ok for dhcp startup,
> but it breaks natd at startup time.

-nw does not work for me since I need the interface configured before some
services start (i.e. natd as you mention).  When there is no link, my
script adds -nw to dhclient_flags.  This breaks natd but since I rarely
boot with the network cable disconnected and then later connect it and
since omshell(1) was only recently hooked up to the build, I didn't bother
with the complete solution.  Heck, ^C works well when dhclient hangs on
boot.

> I'm now trying to get my interface polling patch comitted, which does
> the same thing Nate proposes, but not at the script level.
> 
> http://people.freebsd.org/~mbr/patches/dhclient-interfacepolling.diff

I don't care how this gets implemented and if you're doing it more
elegantly, I'm grateful.  I just wanted to request the functionality.

-Nate



More information about the cvs-src mailing list