From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 21 15:13:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E64537B401 for ; Mon, 21 Apr 2003 15:13:05 -0700 (PDT) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2A5E43FBF for ; Mon, 21 Apr 2003 15:13:01 -0700 (PDT) (envelope-from mb@imp.ch) Received: from cvs.imp.ch (cvs.imp.ch [157.161.4.9]) by mail.imp.ch (8.12.6p2/8.12.3) with ESMTP id h3LMCwVh031332; Tue, 22 Apr 2003 00:12:59 +0200 (CEST) (envelope-from Martin.Blapp@imp.ch) Date: Tue, 22 Apr 2003 00:12:58 +0200 (CEST) From: Martin Blapp To: Alexander Pohoyda In-Reply-To: <20030420171922.Q95995@cvs.imp.ch> Message-ID: <20030422000930.C95995@cvs.imp.ch> References: <20030418132152.X6156@cvs.imp.ch> <20030420014419.T95995@cvs.imp.ch><20030420171922.Q95995@cvs.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: [PATCH] dhclient active interface detection patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 22:13:05 -0000 Hi all, Just to note. If you start your laptop without net connection it will hang when dhclient gets started. To prevent/workaround this, you'll have to add the option -nw. Of course one could just skip the autodetection of the interface and proceed anyway. But then the polling is not done and one has still to restart dhclient manually. I added this to the patchset I've made together with two different minor fixes. I beleave that this patch now really works good for all cases. --- etc/rc.d/dhclient.orig Tue Apr 22 00:00:05 2003 +++ etc/rc.d/dhclient Tue Apr 22 00:00:16 2003 @@ -17,7 +17,7 @@ . /etc/network.subr name="dhclient" -command="/sbin/${name}" +command="/sbin/${name} -nw" pidfile="/var/run/${name}.pid" case "${OSTYPE}" in FreeBSD)