From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 19 10:00:16 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEC4016A41F for ; Thu, 19 Jan 2006 10:00:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AD7743D48 for ; Thu, 19 Jan 2006 10:00:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0JA0GZo080477 for ; Thu, 19 Jan 2006 10:00:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0JA0FoQ080472; Thu, 19 Jan 2006 10:00:15 GMT (envelope-from gnats) Resent-Date: Thu, 19 Jan 2006 10:00:15 GMT Resent-Message-Id: <200601191000.k0JA0FoQ080472@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Peter Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BA4016A41F for ; Thu, 19 Jan 2006 09:58:37 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E41043D46 for ; Thu, 19 Jan 2006 09:58:37 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0J9waKb067401 for ; Thu, 19 Jan 2006 09:58:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k0J9waco067397; Thu, 19 Jan 2006 09:58:36 GMT (envelope-from nobody) Message-Id: <200601190958.k0J9waco067397@www.freebsd.org> Date: Thu, 19 Jan 2006 09:58:36 GMT From: Peter To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: bin/91993: dhclient option missing, script incompability X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2006 10:00:16 -0000 >Number: 91993 >Category: bin >Synopsis: dhclient option missing, script incompability >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 19 10:00:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Peter >Release: FreeBSD 6.0/i386 >Organization: >Environment: FreeBSD gw 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 >Description: In FreeBSD 5.4/i386 (and older) dhclient have an option '-r' which is now missing. No equalient is found. >From 5.4 dhclient manpage: The -r flag explicitly releases the current lease, and once the lease has been released, the client exits. Also the script functionality in '/etc/dhclient-enter-hooks' is incompatible due that old resolver config update function used the name make_resolv_conf(), while the new one use add_new_resolv_conf(). End result being that old replacement hooks won't work. I use a predefined resolver config. >How-To-Repeat: >Fix: kill -9 will partially do the same as the option '-r'. Below /etc/dhclient-enter-hooks will workaround incompability bugs with resolver: make_resolv_conf() { /bin/cp -pf /config/resolv.conf.luth /etc/resolv.conf } add_new_resolv_conf() { make_resolv_conf } Provided that admin is aware of it.. >Release-Note: >Audit-Trail: >Unformatted: