[SM-Commit] GIT changes to master grimoire by Eric Sandall (4a27b33186929b926216cd429b4d705d8b065202)

Eric Sandall scm at sourcemage.org
Tue May 22 11:11:29 EDT 2007


GIT changes to master grimoire by Eric Sandall <sandalle at sourcemage.org>:

 net/wpa_supplicant/HISTORY               |    8 ++++++++
 net/wpa_supplicant/init.d/wpa_supplicant |    3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)

New commits:
commit 06c448c79f95becc0a1d964d2abe98ff152ad661
Author: Eric Sandall <sandalle at sourcemage.org>
Commit: Eric Sandall <sandalle at sourcemage.org>

    wpa_supplicant: Update init script for my setup

diff --git a/net/wpa_supplicant/HISTORY b/net/wpa_supplicant/HISTORY
index 0ef4ea3..34611a0 100644
--- a/net/wpa_supplicant/HISTORY
+++ b/net/wpa_supplicant/HISTORY
@@ -1,3 +1,11 @@
+2007-05-21 Eric Sandall <sandalle at sourcemage.org>
+	* init.d/wpa_supplicant.conf: My network device reports the following
+	  for not being associated:
+	    ath0      IEEE 802.11b  ESSID:""  Nickname:""
+	    Mode:Managed  Channel:0  Access Point: Not-Associated
+	  So look for ESSID:"" to also check since it's on the same line as
+	  $INTERFACE
+
 2007-03-11 Juuso Alasuutari <iuso at sourcemage.org>
 	* CONFIGURE: Made EAP-PSK and EAP-SAKE options mutually exclusive,
 	  fixes #13518.
diff --git a/net/wpa_supplicant/init.d/wpa_supplicant b/net/wpa_supplicant/init.d/wpa_supplicant
index b8e75bb..8625691 100755
--- a/net/wpa_supplicant/init.d/wpa_supplicant
+++ b/net/wpa_supplicant/init.d/wpa_supplicant
@@ -16,7 +16,8 @@ start()
   required_executable /usr/sbin/iwconfig
   local IWCONFIG=`builtin echo $(/usr/sbin/iwconfig $INTERFACE 2>&1)`
 
-  if [[ "$IWCONFIG" == $INTERFACE\ unassociated* ]]
+  if [[ "$IWCONFIG" == $INTERFACE\ unassociated*  ||
+        "$IWCONFIG" == $INTERFACE\ *ESSID:\"\"*      ]]
   then
     echo Starting wpa_supplicant...
     $PROGRAM -B -i $INTERFACE -D $DRIVER -c $CONFIG -g $CONTROL



More information about the SM-Commit mailing list