[PC-BSD Commits] r21873 - pcbsd/current/src-sh/pc-extractoverlay/desktop-overlay/etc

svn at pcbsd.org svn at pcbsd.org
Thu Mar 14 23:37:01 PDT 2013


Author: kris
Date: 2013-03-15 06:37:00 +0000 (Fri, 15 Mar 2013)
New Revision: 21873

Modified:
   pcbsd/current/src-sh/pc-extractoverlay/desktop-overlay/etc/rc.resume
Log:

When we resume on a system with a wlan[0-9] device, reassociate
wpa_supp




Modified: pcbsd/current/src-sh/pc-extractoverlay/desktop-overlay/etc/rc.resume
===================================================================
--- pcbsd/current/src-sh/pc-extractoverlay/desktop-overlay/etc/rc.resume	2013-03-15 02:33:10 UTC (rev 21872)
+++ pcbsd/current/src-sh/pc-extractoverlay/desktop-overlay/etc/rc.resume	2013-03-15 06:37:00 UTC (rev 21873)
@@ -54,7 +54,10 @@
 
 # wpa_supplicant(8) doesn't seem to reassociate during resume.  Uncomment
 # the following to signal it to reassociate.
-# /usr/sbin/wpa_cli reassociate
+ifconfig | grep -q 'wlan[0-9]:' 
+if [ $? -eq 0 ] ; then
+  /usr/sbin/wpa_cli reassociate
+fi
 
 /usr/bin/logger -t $subsystem resumed at `/bin/date +'%Y%m%d %H:%M:%S'`
 /bin/sync && /bin/sync && /bin/sync



More information about the Commits mailing list