Re: wpa_supplicant && and no ctrl_interface for wpa_cli

Doug Barton <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Organization http://www.FreeBSD.org/
Message-ID <[email protected]>
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

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
rc-debug.diff (text/plain, 805 B)
--- /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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.