diff options
author | Jim Pryor <profjim@jimpryor.net> | 2009-08-11 14:05:07 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-08-15 04:28:29 +0200 |
commit | 8b9f249f3d7f4c713c406c31ed9190a636544b14 (patch) | |
tree | d94e1c66eb066081d2cdbaa389d80d089c04e034 /src | |
parent | 03ea89171b2376ac5b593b803ca73e7311c30de8 (diff) | |
download | netctl-8b9f249f3d7f4c713c406c31ed9190a636544b14.tar.gz netctl-8b9f249f3d7f4c713c406c31ed9190a636544b14.tar.xz |
make wep_check more robust
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/wireless | 2 |
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 |