summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ship/lib/network10
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