summaryrefslogtreecommitdiffstats
path: root/usr/lib
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-07-06 01:36:44 +0200
committermakefu <github@syntax-fehler.de>2013-07-06 01:36:44 +0200
commitbdfe4a9e0a9728448c44bc535f966fdd5b102f58 (patch)
tree81da250b2557b47990820c51464391deb400a6f6 /usr/lib
parent5c89d8857a193ddc6cc28a8f1f0001ea552f2c4d (diff)
change loader to wget
TODO implement script which determines the loader available
Diffstat (limited to 'usr/lib')
-rw-r--r--usr/lib/autowifi/lib/network4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/lib/autowifi/lib/network b/usr/lib/autowifi/lib/network
index eb317b84..2d10f3e0 100644
--- a/usr/lib/autowifi/lib/network
+++ b/usr/lib/autowifi/lib/network
@@ -4,8 +4,10 @@ check_gateway(){
ping -c 1 -w 5 $(ip route | awk '/default/{print $3}')
}
check_internet(){
- secret=$(curl http://krebsco.de/secret 2>/dev/null)
+ # TODO determine the loader, either wget or curl
+ secret=$(wget -O- http://krebsco.de/secret 2>/dev/null)
if [ "$secret" == "1337" ]; then
+ echo "cannot load secret or secret incorrect" >&2
return 0
else
return 1