From owner-freebsd-mobile@FreeBSD.ORG Tue Jul 24 06:32:21 2007 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB99616A418 for ; Tue, 24 Jul 2007 06:32:21 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id 8D1C513C46A for ; Tue, 24 Jul 2007 06:32:21 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 22429 invoked by uid 399); 24 Jul 2007 06:05:41 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 24 Jul 2007 06:05:41 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <46A596B3.1080506@FreeBSD.org> Date: Mon, 23 Jul 2007 23:05:39 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.5 (X11/20070723) MIME-Version: 1.0 To: John Baldwin References: <20070718181039.GA1845@rebelion.Sisis.de> <200707231456.27314.jhb@freebsd.org> <20070723210006.GA17989@tirith.brixandersen.dk> <200707231727.18986.jhb@freebsd.org> In-Reply-To: <200707231727.18986.jhb@freebsd.org> X-Enigmail-Version: 0.95.1 OpenPGP: id=D5B2F0FB Content-Type: multipart/mixed; boundary="------------090909040207090207070909" Cc: freebsd-mobile@freebsd.org, Henrik Brix Andersen Subject: Re: wpa_supplicant && and no ctrl_interface for wpa_cli X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2007 06:32:21 -0000 This is a multi-part message in MIME format. --------------090909040207090207070909 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit John Baldwin wrote: > On Monday 23 July 2007 05:00:06 pm Henrik Brix Andersen wrote: >> On Mon, Jul 23, 2007 at 02:56:27PM -0400, John Baldwin wrote: >>> Are you sure? In my output of rcorder, cleanvar gets run before netif > (which >>> is what kicks off wpa_supplicant). Also, when I looked, other files >>> under /var/run that should have been toasted if cleanvar was running after >>> netif were still present. >> Yes, I am sure - I tested the patch before shipping it. If you add a >> debug 'echo' to cleanvar you can see that it removes the >> wpa_supplicant/* files after wpa_supplicant has run. > > Grrr, the problem is that cleanvar is running at the wrong time then. A real > fix is to figure out that ordering problem. > Henrix, can you please copy /etc/rc to its own directory, and apply the attached patch to it? Then please do the following: rcorder -s nostart /etc/rc.d/* > rcorder.log 2>&1 Then run the patched rc, and either send me the 4 (total) files, or post the results here. hth, Doug -- This .signature sanitized for your protection --------------090909040207090207070909 Content-Type: text/plain; name="rc-debug.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rc-debug.diff" --- /etc/rc 2007-05-31 14:34:07.000000000 -0700 +++ rc 2007-07-23 23:00:36.000000000 -0700 @@ -85,8 +47,12 @@ # files=`rcorder ${skip} /etc/rc.d/* 2>/dev/null` +# XXX +rm -f rc.early* rc.late + for _rc_elem in ${files}; do - run_rc_script ${_rc_elem} ${_boot} + #run_rc_script ${_rc_elem} ${_boot} + echo $_rc_elem >> rc.early1 case "$_rc_elem" in */${early_late_divider}) break ;; @@ -107,16 +73,22 @@ _skip_early=1 for _rc_elem in ${files}; do case "$_skip_early" in - 1) case "$_rc_elem" in + 1) + echo $_rc_elem >> rc.early2 + case "$_rc_elem" in */${early_late_divider}) _skip_early=0 ;; esac continue ;; esac - run_rc_script ${_rc_elem} ${_boot} + echo $_rc_elem >> rc.late + + #run_rc_script ${_rc_elem} ${_boot} done +diff -u rc.early* + echo '' date exit 0 --------------090909040207090207070909--