diff options
author | Jan Huwald <jh@sotun.de> | 2012-03-30 11:35:56 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-03-30 11:35:56 (GMT) |
commit | fd1227d5b01381fc448e7459082bbbdfd8ee0e7f (patch) | |
tree | 9bbc740bae2828f0f673c34717c0409f085ce7f0 | |
parent | 0f638b572f70ef6461fdc6fb2e8865c0454d6867 (diff) |
webif: add intnert status api
-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)" |