Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Sep 2011 18:13:05 GMT
From:      Nick Hibma <nick@anywi.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/160373: pccard_ether does not take settings in /etc/rc.conf.d/network into account
Message-ID:  <201109011813.p81ID5R7077786@red.freebsd.org>
Resent-Message-ID: <201109011820.p81IK9XZ001451@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         160373
>Category:       conf
>Synopsis:       pccard_ether does not take settings in /etc/rc.conf.d/network into account
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 01 18:20:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Nick Hibma
>Release:        FreeBSD 8-STABLE (old)
>Organization:
AnyWi Technologies
>Environment:
FreeBSD uitsmijter.van-laarhoven.org 8.2-STABLE FreeBSD 8.2-STABLE #13: Mon Mar 28 10:06:02 CEST 2011     nick@uitsmijter.van-laarhoven.org:/usr/src/sys/i386/compile/UITSMIJTER  i386
>Description:
In our configuration system we use /etc/rc.conf.d/ files extensively (instead of sticking everything into /etc/rc.conf and rc.conf.local).

But pccard_ether does not take /etc/rc.conf.d/network into account when deciding whether an interface is NOAUTO or not.
>How-To-Repeat:
Define a wlan interface in /etc/rc.conf.d/network

wlans_ath0="wlan0"
ifconfig_wlan0="DHCP NOAUTO"

Execute

/etc/rc.conf.d/pccard_ether wlan0 restart

and notice that it will configure the interface.

Add

. /etc/rc.conf.d/network

to /etc/rc.conf.d/pccard_ether and execute the command above again. Notice that the interface is no longer configured.
>Fix:
--- pccard_ether.old	2011-09-01 18:10:43.000000000 +0000
+++ pccard_ether	2011-09-01 17:20:26.000000000 +0000
@@ -123,6 +123,7 @@
 	args=$*
 fi
 
-load_rc_config pccard_ether
+load_rc_config $name
+load_rc_config network
 
 run_rc_command $args

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109011813.p81ID5R7077786>