From owner-freebsd-rc@FreeBSD.ORG Sun Feb 26 21:30:12 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCEAA16A420 for ; Sun, 26 Feb 2006 21:30:12 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 0A63243D58 for ; Sun, 26 Feb 2006 21:30:11 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 55614 invoked by uid 399); 26 Feb 2006 21:30:11 -0000 Received: from localhost (HELO ?192.168.1.100?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 26 Feb 2006 21:30:11 -0000 Message-ID: <44021DE2.2010509@FreeBSD.org> Date: Sun, 26 Feb 2006 13:30:10 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Tobias Roth References: <20060221023750.GA32185@odin.ac.hmc.edu> <20060221045324.8717645048@ptavv.es.net> <20060221075140.GA9101@droopy.unibe.ch> <20060221212818.GA22713@odin.ac.hmc.edu> <20060225132226.GA27397@droopy.unibe.ch> In-Reply-To: <20060225132226.GA27397@droopy.unibe.ch> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: dhclient existing when run early in startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2006 21:30:12 -0000 Tobias Roth wrote: > On Tue, Feb 21, 2006 at 01:28:18PM -0800, Brooks Davis wrote: > >>> Possible improvements: >>> 1) change dhclient to accept a timeout on the commandline >> This would be a useful addon. Actually, I'd like to see both the option >> to specify a shorter one and the option to keep trying forever since >> that's what's wanted in some scenerios. > > I've implemented the two switches -i and -t, that override the variables > from dhclient.conf 'retry' and 'timeout'. The patch can be found here: > > http://fsck.ch/dhclient_timeouts.diff While you're at it, how about making the number of tries a runtime option as well? I'm speaking specifically about the number of times dhclient tries an interface before giving up with 'no link'. I have locally patched my system to reduce that number from 10 to 5 since on my laptop bge0 is always tried first, and rarely is it actually connected. Doug -- This .signature sanitized for your protection