Date: Mon, 02 Oct 2006 08:52:46 +0200 From: Nick Hibma <nick@anywi.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/103893: [PATCH] dhclient does not take settings in /etc/rc.conf.d/network into account Message-ID: <1159771966.814766.5808.nullmailer@van-laarhoven.org> Resent-Message-ID: <200610020700.k9270VN3078299@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1159771966.814766.5808.nullmailer>
