diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-29 11:30:35 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-29 11:30:35 +0000 |
commit | 2346e8fd145e4c45760d9d5519a99db8ef1239df (patch) | |
tree | 514b217793ad4e60c8eb5030d6e2144599dfc8ab /openwrt/package/wiviz/files/www/cgi-bin | |
parent | 4f99a13308237667eed1572faec096451924077e (diff) |
add Wi-viz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1785 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 000000000..161fc75ee --- /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 000000000..17b47873a --- /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 |