wpa_supplicant && and no ctrl_interface for wpa_cli

Doug Barton dougb at FreeBSD.org
Tue Jul 24 06:32:21 UTC 2007


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

-------------- next part --------------
--- /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


More information about the freebsd-mobile mailing list