Skip to Content.
Sympa Menu

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

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Juuso Alasuutari <iuso AT sourcemage.org>
  • Cc: sm-commit AT lists.ibiblio.org
  • Subject: Re: [SM-Commit] GIT changes to master grimoire by Eric Sandall (4a27b33186929b926216cd429b4d705d8b065202)
  • Date: Tue, 22 May 2007 18:53:02 +0300

Eric Sandall wrote:
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

Just to be extra careful: Is it possible that your device would report this in some other cases, or that some other device might report this even when it's connected?

As a side note, the whole if-then chain is far from perfect. There may be (and probably are) other kinds of devices too that don't interact well with the parsing. Do you have ideas about how we could reliably check for an existing connection? I have a feeling that parsing iwconfig is a bad thing. Heck, I wrote the thing myself so it can't be all good. :)

iuso




Archive powered by MHonArc 2.6.24.

Top of Page