summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-06-10 21:02:46 +0200
committerlassulus <lassulus@googlemail.com>2013-06-10 21:02:46 +0200
commit04457e14918e7b2a99fc2d6243f004d8452977e3 (patch)
treeba40f064ea59b72a8cf9b91abaebe61ad8b53755
parent39756bf494a8caf6864cee19a3e6c8d988e5df0e (diff)
now with convenient loop
-rw-r--r--etc/autowifi/wifi_keys3
-rwxr-xr-xusr/bin/autowifi5
2 files changed, 7 insertions, 1 deletions
diff --git a/etc/autowifi/wifi_keys b/etc/autowifi/wifi_keys
index 3e9b8870..bfc137b0 100644
--- a/etc/autowifi/wifi_keys
+++ b/etc/autowifi/wifi_keys
@@ -1,2 +1,3 @@
-#SSID|MAC|KEY
Internet|00:11:22:33:44:55|wut
+shack|00:27:22:6c:13:9d|0|Stand in der Lounge am Fenster
+#SSID|MAC|KEY
diff --git a/usr/bin/autowifi b/usr/bin/autowifi
index b8ba1482..f0bfd83d 100755
--- a/usr/bin/autowifi
+++ b/usr/bin/autowifi
@@ -151,4 +151,9 @@ elif [ -n "$1" ]; then
else
echo looping network now
loop_over_networks
+ while sleep 60; do
+ if ! check_internet; then
+ loop_over_networks
+ fi
+ done
fi