florian 0286afc60a Port wiviz to -ng
git-svn-id: svn://svn.openwrt.org/openwrt/packages@4675 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-08-26 07:29:39 +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>"