From b3337c54a2c4803b8290ae8e6f52abab1f47d93b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 29 Aug 2005 11:30:35 +0000 Subject: add Wi-viz SVN-Revision: 1785 --- openwrt/package/wiviz/files/www/cgi-bin/wiviz/get.cgi | 15 +++++++++++++++ openwrt/package/wiviz/files/www/cgi-bin/wiviz/set.cgi | 3 +++ 2 files changed, 18 insertions(+) create mode 100755 openwrt/package/wiviz/files/www/cgi-bin/wiviz/get.cgi create mode 100755 openwrt/package/wiviz/files/www/cgi-bin/wiviz/set.cgi (limited to 'openwrt/package/wiviz/files/www/cgi-bin') 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 0000000..161fc75 --- /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 &1 & + killall -USR1 wiviz > /dev/null + fi +echo "" 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 0000000..17b4787 --- /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 -- cgit v1.1