1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-19 07:27:11 +02:00
openwrt-xburst/package/wiviz/files/www/cgi-bin/wiviz/get.cgi
nbd 35015fbd8d add Wi-viz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1785 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-08-29 11:30:35 +00:00

16 lines
361 B
Bash
Executable File

#!/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>"