From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 2 07:00:32 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 3895316A412 for ; Mon, 2 Oct 2006 07:00:32 +0000 (UTC) (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 4B95243D4C for ; Mon, 2 Oct 2006 07:00:31 +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 k9270V53078300 for ; Mon, 2 Oct 2006 07:00:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9270VN3078299; Mon, 2 Oct 2006 07:00:31 GMT (envelope-from gnats) Resent-Date: Mon, 2 Oct 2006 07:00:31 GMT Resent-Message-Id: <200610020700.k9270VN3078299@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, Nick Hibma Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31E2816A407 for ; Mon, 2 Oct 2006 06:52:51 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from smtp04.wanadoo.nl (smtp4.wanadoo.nl [194.134.35.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0CB343D46 for ; Mon, 2 Oct 2006 06:52:50 +0000 (GMT) (envelope-from nick@van-laarhoven.org) Received: from uitsmijter.van-laarhoven.org (ap-zvhz-13f05.adsl.wanadoo.nl [81.69.93.5]) by smtp4.wanadoo.nl (Postfix) with ESMTP id 29E71175BE for ; Mon, 2 Oct 2006 08:52:49 +0200 (CEST) Received: (qmail 48166 invoked from network); 2 Oct 2006 06:52:49 -0000 Received: from 10.66.0.143 by uitsmijter.van-laarhoven.org (envelope-from , uid 82) with qmail-scanner-1.25 (clamdscan: 0.88.2/1459. f-prot: 4.6.6/3.16.14. spamassassin: 3.1.1. Clear:RC:1(10.66.0.143):. Processed in 0.050002 secs); 02 Oct 2006 06:52:49 -0000 Received: from unknown (HELO van-laarhoven.org) (nick@10.66.0.143) by uitsmijter.van-laarhoven.org with SMTP; 2 Oct 2006 06:52:48 -0000 Received: (nullmailer pid 5809 invoked by uid 1001); Mon, 02 Oct 2006 06:52:46 -0000 Message-Id: <1159771966.814766.5808.nullmailer@van-laarhoven.org> Date: Mon, 02 Oct 2006 08:52:46 +0200 From: Nick Hibma To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: conf/103893: [PATCH] dhclient does not take settings in /etc/rc.conf.d/network into account 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: Mon, 02 Oct 2006 07:00:32 -0000 >Number: 103893 >Category: conf >Synopsis: [PATCH] dhclient does not take settings in /etc/rc.conf.d/network into account >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 02 07:00:30 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Nick Hibma >Release: FreeBSD 6.1-STABLE i386 >Organization: AnyWi Technologies >Environment: System: FreeBSD hind.van-laarhoven.org 6.1-STABLE FreeBSD 6.1-STABLE #19: Thu Aug 17 16:31:39 CEST 2006 toor@hind.van-laarhoven.org:/usr/src/sys/i386/compile/HIND i386 >Description: Setting the following in /etc/rc.conf.d/network (instead of /etc/rc.conf) does not work as /etc/rc.d/dhclient does not load rc config network ifconfig_ath0="WPA DHCP" It fires up wpa_supplicant but then fails to start dhclient. As this is an image built with nanobsd, adding this line to ifconfig_ath0 is not a good alternative as it requires me to have non-default /etc/rc.conf files. /etc/rc.conf.local is an alternative. >How-To-Repeat: Move the ifconfig statement above to /etc/rc.conf.d/network and run /etc/rc.d/netif start ath0 ps ax | grep dhclient shows no dhclient active. >Fix: --- dhclient.orig Thu Jan 6 07:49:38 2005 +++ dhclient Thu Jan 6 07:43:18 2005 @@ -42,6 +42,7 @@ ifn="$2" load_rc_config $name +load_rc_config network if ! dhcpif $ifn; then return 1 >Release-Note: >Audit-Trail: >Unformatted: