let ipkg fail when a package file to be installed is not found
[openwrt/staging/wigyori.git] / openwrt / package / wiviz / files / www / cgi-bin / wiviz / get.cgi
1 #!/bin/sh
2
3 WIVIZ_PATH=wiviz
4
5 echo Content-type: text/html
6 echo
7 killall -USR1 wiviz >/dev/null 2>&1
8 if [ 0 -ne $? ]
9 then #### Wi-Viz daemon not running, start it
10 $WIVIZ_PATH >/dev/null </dev/null 2>&1 &
11 killall -USR1 wiviz > /dev/null
12 fi
13 echo "<html><head><script language='JavaScript1.2'>"
14 cat /tmp/wiviz-pipe
15 echo "</script></head><body></body></html>"