mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-02 06:58:26 +02:00
2346e8fd14
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1785 3c298f89-4303-0410-b956-a3cf2f4a3e73
16 lines
361 B
Bash
Executable File
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>"
|