diff options
author | makefu <github@syntax-fehler.de> | 2013-12-19 00:26:11 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-12-19 00:26:11 +0100 |
commit | 1d12749d7dc04613f119a1d3f61b3682e182627b (patch) | |
tree | a6f7f81a3b9279cc616bf94a837605f0882e95f8 /ship | |
parent | 0ea4ecfaeae4de01a416e4f56f9809fed3bc0b62 (diff) |
ship/network: solve TODO in internet
Diffstat (limited to 'ship')
-rw-r--r-- | ship/lib/network | 10 |
1 files changed, 10 insertions, 0 deletions
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 |