diff options
author | makefu <github@syntax-fehler.de> | 2013-05-26 11:22:28 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-05-26 11:22:28 +0200 |
commit | e7baf4ada0fa6b9aca40d9b237e84c23172ffdbd (patch) | |
tree | bd02f77df6c08ae13aaf2f1a83e45c107d78c277 /usr/bin | |
parent | 9bee05500405e0418876406d3dc64beca044667e (diff) | |
parent | 505fb72b7b9e061e48c90ce35fa317e2a3b55437 (diff) |
Merge branch 'master' of github.com:krebscode/minikrebs
Diffstat (limited to 'usr/bin')
-rwxr-xr-x | usr/bin/autowifi | 6 |
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 |