diff options
Diffstat (limited to 'files/common/www/service/cgi-bin/online.json')
-rwxr-xr-x | files/common/www/service/cgi-bin/online.json | 8 |
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)" |