From owner-cvs-src@FreeBSD.ORG Tue Apr 22 23:46:55 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C4BB37B404 for ; Tue, 22 Apr 2003 23:46:55 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 1215743FAF for ; Tue, 22 Apr 2003 23:46:54 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 60112 invoked by uid 1000); 23 Apr 2003 06:46:56 -0000 Date: Tue, 22 Apr 2003 23:46:56 -0700 (PDT) From: Nate Lawson To: Martin Blapp In-Reply-To: <20030423081326.E95995@cvs.imp.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Mike Makonnen Subject: Re: cvs commit: src/etc Makefile network.subr src/etc/rc.d hostname netif network1 nisdomain X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2003 06:46:55 -0000 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