summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-08-11 14:05:07 +0200
committerJames Rayner <james@archlinux.org>2009-08-15 04:28:29 +0200
commit8b9f249f3d7f4c713c406c31ed9190a636544b14 (patch)
treed94e1c66eb066081d2cdbaa389d80d089c04e034
parent03ea89171b2376ac5b593b803ca73e7311c30de8 (diff)
downloadnetctl-8b9f249f3d7f4c713c406c31ed9190a636544b14.tar.gz
netctl-8b9f249f3d7f4c713c406c31ed9190a636544b14.tar.xz
make wep_check more robust
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
-rw-r--r--src/wireless2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wireless b/src/wireless
index 69d3de9..883ea0b 100644
--- a/src/wireless
+++ b/src/wireless
@@ -6,7 +6,7 @@ wep_check()
while [[ $timeout -ne $TIMEOUT ]]; do
bssid=`iwgetid $INTERFACE -ra`
- [[ ! "$bssid" = "00:00:00:00:00:00" ]] && return 0
+ [[ -n "$bssid" && "$bssid" != "00:00:00:00:00:00" ]] && return 0
sleep 1
let timeout++
done