diff options
Diffstat (limited to 'src/wireless')
-rw-r--r-- | src/wireless | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wireless b/src/wireless index ff20806..d3eb79c 100644 --- a/src/wireless +++ b/src/wireless @@ -2,10 +2,10 @@ # wep_check interface [timeout] wep_check() { - local INTERFACE=$1 TIMEOUT=${2:-15} timeout=0 bssid + local INTERFACE="$1" TIMEOUT="${2:-15}" timeout=0 bssid - while [[ $timeout -ne $TIMEOUT ]]; do - bssid=`iwgetid $INTERFACE -ra` + while [[ $timeout -lt "$TIMEOUT" ]]; do + bssid=$(iwgetid "$INTERFACE" -ra) [[ -n "$bssid" && "$bssid" != "00:00:00:00:00:00" ]] && return 0 sleep 1 let timeout++ |