Date: Mon, 23 Jul 2007 23:05:39 -0700 From: Doug Barton <dougb@FreeBSD.org> To: John Baldwin <jhb@freebsd.org> Cc: freebsd-mobile@freebsd.org, Henrik Brix Andersen <henrik@brixandersen.dk> Subject: Re: wpa_supplicant && and no ctrl_interface for wpa_cli Message-ID: <46A596B3.1080506@FreeBSD.org> In-Reply-To: <200707231727.18986.jhb@freebsd.org> References: <20070718181039.GA1845@rebelion.Sisis.de> <200707231456.27314.jhb@freebsd.org> <20070723210006.GA17989@tirith.brixandersen.dk> <200707231727.18986.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
--- /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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46A596B3.1080506>
