From bdfe4a9e0a9728448c44bc535f966fdd5b102f58 Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 6 Jul 2013 01:36:44 +0200 Subject: change loader to wget TODO implement script which determines the loader available --- usr/lib/autowifi/lib/network | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3