conf/160373: pccard_ether does not take settings in
/etc/rc.conf.d/network into account
Nick Hibma
nick at anywi.com
Thu Sep 1 18:20:09 UTC 2011
>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 at 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:
More information about the freebsd-bugs
mailing list