From owner-cvs-src@FreeBSD.ORG Sun Mar 30 02:42:39 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 CF23E106566C; Sun, 30 Mar 2008 02:42:39 +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 A71128FC1A; Sun, 30 Mar 2008 02:42:39 +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 m2U2gdpb017024; Sun, 30 Mar 2008 02:42:39 GMT (envelope-from brooks@repoman.freebsd.org) Received: (from brooks@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2U2gd0v017023; Sun, 30 Mar 2008 02:42:39 GMT (envelope-from brooks) Message-Id: <200803300242.m2U2gd0v017023@repoman.freebsd.org> From: Brooks Davis Date: Sun, 30 Mar 2008 02:42:39 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD 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: Sun, 30 Mar 2008 02:42:40 -0000 brooks 2008-03-30 02:42:39 UTC FreeBSD src repository Modified files: sbin/dhclient dhclient-script Log: 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] MFC after: 1 week Revision Changes Path 1.19 +48 -20 src/sbin/dhclient/dhclient-script