summaryrefslogtreecommitdiffstats
path: root/src/wireless
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-08-11 14:05:16 +0200
committerJames Rayner <james@archlinux.org>2009-08-15 04:28:31 +0200
commit09a2212f344e5bdf7573584a9b8ef5b64c7b1fac (patch)
treeea813dcebf776401161a6fc3b4761710b2a0d2e2 /src/wireless
parent07aa8f784896ba97914f4b2a71d2ba6c0047cb07 (diff)
downloadnetctl-09a2212f344e5bdf7573584a9b8ef5b64c7b1fac.tar.gz
netctl-09a2212f344e5bdf7573584a9b8ef5b64c7b1fac.tar.xz
quotes!
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/wireless')
-rw-r--r--src/wireless6
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++