From 06e5754372f036c3a4b5a3a549db36a8fed066ff Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 10 Jun 2013 21:26:41 +0200 Subject: merge curl and wget --- TODO | 1 - usr/lib/autowifi/lib/network | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO b/TODO index 1bef61e9..cc14f041 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,4 @@ sort networks by bandwidth and connect -merge curl and wget commands perform initial scan on startup of unscanned networks more intelligent autoconnect (open first, encrypted second etc.) profiles ala netcfg/netctl 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 -- cgit v1.2.3