From 1d12749d7dc04613f119a1d3f61b3682e182627b Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 19 Dec 2013 00:26:11 +0100 Subject: ship/network: solve TODO in internet --- ship/lib/network | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ship/lib/network') diff --git a/ship/lib/network b/ship/lib/network index 90d7ec4f..75ceb9b8 100644 --- a/ship/lib/network +++ b/ship/lib/network @@ -36,6 +36,16 @@ http_head(){ eval "$(which_head_loader)" "${1?please provide url}" 2>&1 } +internet(){ + secret=$(http_get http://krebsco.de/secret 2>/dev/null) + if [ "$secret" == "1337" ]; then + return 0 + else + echo "cannot load secret or secret incorrect" >&2 + return 1 + fi +} + which_telnet(){ # find Telnet or similar and executes it at the end # requires exist -- cgit v1.2.3