summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/net-profiles1
-rw-r--r--src/wireless4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/net-profiles b/src/net-profiles
index 129aaed..ba75d56 100644
--- a/src/net-profiles
+++ b/src/net-profiles
@@ -51,7 +51,6 @@ case "$1" in
add_daemon net-profiles
exit 0
fi
- break # found an enabled profile but failed to bring it up: exit for loop
fi
;;
esac
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++