summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-03-30 11:35:56 (GMT)
committerJan Huwald <jh@sotun.de>2012-03-30 11:35:56 (GMT)
commitfd1227d5b01381fc448e7459082bbbdfd8ee0e7f (patch)
tree9bbc740bae2828f0f673c34717c0409f085ce7f0
parent0f638b572f70ef6461fdc6fb2e8865c0454d6867 (diff)
webif: add intnert status api
-rwxr-xr-xfiles/common/www/service/cgi-bin/online.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/files/common/www/service/cgi-bin/online.json b/files/common/www/service/cgi-bin/online.json
new file mode 100755
index 0000000..847ee5e
--- /dev/null
+++ b/files/common/www/service/cgi-bin/online.json
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+. /www/service/cgi-bin/common.sh
+
+echo -e "Status: 200 OK\r
+Content-Type: application/json\r
+\r
+$(have_internet && echo true || echo false)"
contact: Jan Huwald // Impressum