diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-08-29 11:30:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-08-29 11:30:35 +0000 |
commit | b3337c54a2c4803b8290ae8e6f52abab1f47d93b (patch) | |
tree | 514b217793ad4e60c8eb5030d6e2144599dfc8ab /openwrt/package/wiviz/files/www/cgi-bin | |
parent | dd7c30306de45867a23dc21ea9505cf5f950b04e (diff) | |
download | mtk-20170518-b3337c54a2c4803b8290ae8e6f52abab1f47d93b.zip mtk-20170518-b3337c54a2c4803b8290ae8e6f52abab1f47d93b.tar.gz mtk-20170518-b3337c54a2c4803b8290ae8e6f52abab1f47d93b.tar.bz2 |
add Wi-viz
SVN-Revision: 1785
Diffstat (limited to 'openwrt/package/wiviz/files/www/cgi-bin')
-rwxr-xr-x | openwrt/package/wiviz/files/www/cgi-bin/wiviz/get.cgi | 15 | ||||
-rwxr-xr-x | openwrt/package/wiviz/files/www/cgi-bin/wiviz/set.cgi | 3 |
2 files changed, 18 insertions, 0 deletions
diff --git a/openwrt/package/wiviz/files/www/cgi-bin/wiviz/get.cgi b/openwrt/package/wiviz/files/www/cgi-bin/wiviz/get.cgi new file mode 100755 index 0000000..161fc75 --- /dev/null +++ b/openwrt/package/wiviz/files/www/cgi-bin/wiviz/get.cgi @@ -0,0 +1,15 @@ +#!/bin/sh + +WIVIZ_PATH=wiviz + +echo Content-type: text/html +echo +killall -USR1 wiviz >/dev/null 2>&1 +if [ 0 -ne $? ] + then #### Wi-Viz daemon not running, start it + $WIVIZ_PATH >/dev/null </dev/null 2>&1 & + killall -USR1 wiviz > /dev/null + fi +echo "<html><head><script language='JavaScript1.2'>" +cat /tmp/wiviz-pipe +echo "</script></head><body></body></html>" diff --git a/openwrt/package/wiviz/files/www/cgi-bin/wiviz/set.cgi b/openwrt/package/wiviz/files/www/cgi-bin/wiviz/set.cgi new file mode 100755 index 0000000..17b4787 --- /dev/null +++ b/openwrt/package/wiviz/files/www/cgi-bin/wiviz/set.cgi @@ -0,0 +1,3 @@ +#!/bin/sh +httpd -d $QUERY_STRING > /tmp/wiviz-cfg +killall -USR2 wiviz |