summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/bin/autowifi3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/bin/autowifi b/usr/bin/autowifi
index bcc8f031..28b24808 100755
--- a/usr/bin/autowifi
+++ b/usr/bin/autowifi
@@ -94,8 +94,7 @@ crack_wifi(){
(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"
- sleep 60
- check_internet && all_led none && return 0
+ check_gateway && all_led none && return 0
fi
fi
done