Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2003 23:46:56 -0700 (PDT)
From:      Nate Lawson <nate@root.org>
To:        Martin Blapp <mb@imp.ch>
Cc:        Mike Makonnen <mtm@identd.net>
Subject:   Re: cvs commit: src/etc Makefile network.subr src/etc/rc.d hostname netif network1 nisdomain
Message-ID:  <Pine.BSF.4.21.0304222341260.59938-100000@root.org>
In-Reply-To: <20030423081326.E95995@cvs.imp.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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