From 505fb72b7b9e061e48c90ce35fa317e2a3b55437 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 25 May 2013 23:18:12 +0200 Subject: more timout, check_internet now, led command changed --- usr/bin/autowifi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr') diff --git a/usr/bin/autowifi b/usr/bin/autowifi index 7b92eb9b..f5a177a0 100755 --- a/usr/bin/autowifi +++ b/usr/bin/autowifi @@ -34,12 +34,12 @@ crack_wifi(){ ret=$? if [ $ret -eq 0 ];then connect_wifi "$3" "$1" $encr "$key" - sleep 5 + sleep 20 if check_gateway; then (cat /etc/autowifi/wifi_keys | grep -v "$1|$2|" ; echo "$1|$2|$key" ) | sort | uniq > /etc/autowifi/wifi_keys2 mv /etc/autowifi/wifi_keys2 /etc/autowifi/wifi_keys echo "yay gateway" - check_gateway && all_led none && return 0 + check_internet && all_led none && return 0 fi fi done @@ -58,7 +58,7 @@ loop_over_networks while sleep 60; do if ! check_internet; then - all_led default-on + all_led on iwlist_scan > /tmp/${wifi}.scan loop_over_networks fi -- cgit v1.2.3