summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-05-25 23:18:12 +0200
committerlassulus <lassulus@googlemail.com>2013-05-25 23:18:12 +0200
commit505fb72b7b9e061e48c90ce35fa317e2a3b55437 (patch)
tree0a854050a421dd1c507678e5da107cdb10d3bb9b /usr
parent7b378cab9f8c201b2646d1112867225b47645e4e (diff)
more timout, check_internet now, led command changed
Diffstat (limited to 'usr')
-rwxr-xr-xusr/bin/autowifi6
1 files changed, 3 insertions, 3 deletions
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