From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 1 18:20:09 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B95C1065679 for ; Thu, 1 Sep 2011 18:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5FF7D8FC12 for ; Thu, 1 Sep 2011 18:20:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p81IK9Ip001452 for ; Thu, 1 Sep 2011 18:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p81IK9XZ001451; Thu, 1 Sep 2011 18:20:09 GMT (envelope-from gnats) Resent-Date: Thu, 1 Sep 2011 18:20:09 GMT Resent-Message-Id: <201109011820.p81IK9XZ001451@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 [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87E45106564A for ; Thu, 1 Sep 2011 18:13:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 779278FC0A for ; Thu, 1 Sep 2011 18:13:05 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p81ID5mr077790 for ; Thu, 1 Sep 2011 18:13:05 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p81ID5R7077786; Thu, 1 Sep 2011 18:13:05 GMT (envelope-from nobody) Message-Id: <201109011813.p81ID5R7077786@red.freebsd.org> Date: Thu, 1 Sep 2011 18:13:05 GMT From: Nick Hibma To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: conf/160373: pccard_ether 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: Thu, 01 Sep 2011 18:20:09 -0000 >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: