summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--TODO1
-rw-r--r--etc/autowifi/wifi_keys2
-rw-r--r--usr/lib/autowifi/lib/network2
4 files changed, 2 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..340ad789
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+etc/autowifi/wifi_keys
diff --git a/TODO b/TODO
index 89dcc6e6..42e9679c 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,3 @@
-merge curl and wget commands
more intelligent autoconnect (open first, encrypted second etc.)
perform initial scan on startup of unscanned networks
sort networks by bandwidth and connect
diff --git a/etc/autowifi/wifi_keys b/etc/autowifi/wifi_keys
index ecfb9ea2..ef66cf3e 100644
--- a/etc/autowifi/wifi_keys
+++ b/etc/autowifi/wifi_keys
@@ -1,3 +1 @@
#SSID|MAC|BANDWIDTH|KEY
-Internet|00:11:22:33:44:55|wut
-shack|00:27:22:6c:13:9d|113958|Stand in der Lounge am Fenster
diff --git a/usr/lib/autowifi/lib/network b/usr/lib/autowifi/lib/network
index aabac89b..a9e30739 100644
--- a/usr/lib/autowifi/lib/network
+++ b/usr/lib/autowifi/lib/network
@@ -4,7 +4,7 @@ check_gateway(){
ping -c 1 -w 5 $(ip route | awk '/default/{print $3}')
}
check_internet(){
- secret=$(wget -O- http://krebsco.de/secret 2>/dev/null)
+ secret=$(curl http://krebsco.de/secret 2>/dev/null)
if [ "$secret" == "1337" ]; then
return 0
else