From owner-cvs-src@FreeBSD.ORG Fri Apr 11 00:18:37 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B0BA1065671; Fri, 11 Apr 2008 00:18:37 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 678968FC1F; Fri, 11 Apr 2008 00:18:37 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m3B0IbUA056934; Fri, 11 Apr 2008 00:18:37 GMT (envelope-from brooks@repoman.freebsd.org) Received: (from brooks@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3B0Ib7U056933; Fri, 11 Apr 2008 00:18:37 GMT (envelope-from brooks) Message-Id: <200804110018.m3B0Ib7U056933@repoman.freebsd.org> From: Brooks Davis Date: Fri, 11 Apr 2008 00:18:37 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sbin/dhclient dhclient-script X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 11 Apr 2008 00:18:37 -0000 brooks 2008-04-11 00:18:37 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sbin/dhclient dhclient-script Log: MFC rev 1.19 Add a new function is_default_interface() which determines if this interface is one with the default route (or there isn't one). Use it to decide if we should adjust the default route and /etc/resolv.conf. Fix the delete of the default route. The if statement was totally bogus and the delete only worked due to a typo. [1] Reported by: Jordan Coleman [1] Revision Changes Path 1.4.2.8 +48 -20 src/sbin/dhclient/dhclient-script