From a14696d03dd23fac8d4c56058e8571049e0649dc Mon Sep 17 00:00:00 2001 From: James Rayner Date: Wed, 2 Sep 2009 09:54:35 +1000 Subject: Shorten find_ap/essid and allow net-profiles to continue if a profile fails --- src/wireless | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wireless') diff --git a/src/wireless b/src/wireless index d3eb79c..2c9e681 100644 --- a/src/wireless +++ b/src/wireless @@ -16,7 +16,7 @@ wep_check() # Check if a particular network is within range # find_essid interface essid connection (we treat ESSID as regexp when CONNECTION=wireless-dbus) find_essid() { - local INTERFACE="$1" ESSID="$2" CONNECTION="$3" RETRIES=20 try=0 res scanned + local INTERFACE="$1" ESSID="$2" CONNECTION="$3" RETRIES=10 try=0 res scanned while [[ "$try" -lt "$RETRIES" ]]; do sleep 0.5 let try++ @@ -55,7 +55,7 @@ find_essid() { # Check if a particular network is within range # find_ap interface ap find_ap() { - local INTERFACE="$1" ap=$(echo "$2" | tr 'abcdef' 'ABCDEF') RETRIES=20 try=0 res scanned + local INTERFACE="$1" ap=$(echo "$2" | tr 'abcdef' 'ABCDEF') RETRIES=10 try=0 res scanned while [[ "$try" -lt "$RETRIES" ]]; do sleep 0.5 let try++ -- cgit v1.2.3-24-g4f1b