From fd1227d5b01381fc448e7459082bbbdfd8ee0e7f Mon Sep 17 00:00:00 2001 From: Jan Huwald Date: Fri, 30 Mar 2012 11:35:56 +0000 Subject: webif: add intnert status api 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)" -- cgit v0.10.1