diff options
author | Cecil <knoppmyth@gmail.com> | 2011-12-09 17:18:27 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-12-09 17:18:27 (GMT) |
commit | c034db2c880091379f7e58c2938a9689d78fbaa9 (patch) | |
tree | 8a074205a2f3bf6ee7fb5945c53e1a1618d41973 /abs/core/supplemental-web/cgi | |
parent | 73b42144585c603fc64e7b1d6a126ceb7c486870 (diff) | |
parent | b0c5755ade92ee5b76a6d56248e64254876bc931 (diff) | |
download | linhes_pkgbuild-c034db2c880091379f7e58c2938a9689d78fbaa9.zip linhes_pkgbuild-c034db2c880091379f7e58c2938a9689d78fbaa9.tar.gz linhes_pkgbuild-c034db2c880091379f7e58c2938a9689d78fbaa9.tar.bz2 |
Merge branch 'testing' of ssh://cesman@linhes.org/mount/repository/linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/supplemental-web/cgi')
-rw-r--r-- | abs/core/supplemental-web/cgi/beclear.cgi | 4 | ||||
-rw-r--r-- | abs/core/supplemental-web/cgi/bestop.cgi | 6 | ||||
-rw-r--r-- | abs/core/supplemental-web/cgi/diskless.py | 11 | ||||
-rw-r--r-- | abs/core/supplemental-web/cgi/serverkey.cgi | 3 |
4 files changed, 24 insertions, 0 deletions
diff --git a/abs/core/supplemental-web/cgi/beclear.cgi b/abs/core/supplemental-web/cgi/beclear.cgi new file mode 100644 index 0000000..40c0cec --- /dev/null +++ b/abs/core/supplemental-web/cgi/beclear.cgi @@ -0,0 +1,4 @@ +#!/bin/bash +/usr/local/bin/mythbackend --clearcache +MESSAGE="settings cache is cleared " +#/usr/bin/notify.py SYS "$MESSAGE" 2>/dev/null diff --git a/abs/core/supplemental-web/cgi/bestop.cgi b/abs/core/supplemental-web/cgi/bestop.cgi new file mode 100644 index 0000000..e45e74d --- /dev/null +++ b/abs/core/supplemental-web/cgi/bestop.cgi @@ -0,0 +1,6 @@ +#!/bin/bash +sudo /sbin/sv stop mythbackend > /dev/null +MESSAGE="`hostname` B.E. stopped" + +#echo $MESSAGE +/usr/bin/notify.py NFO "$MESSAGE" 2>/dev/null diff --git a/abs/core/supplemental-web/cgi/diskless.py b/abs/core/supplemental-web/cgi/diskless.py new file mode 100644 index 0000000..d8d960b --- /dev/null +++ b/abs/core/supplemental-web/cgi/diskless.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +import cgi +import os +#http://192.168.1.200:1337/diskless.py?HOSTNAME=Envynetfe&MAC=00:0C:29:2D:08:82 + +The_Form = cgi.FieldStorage() +print "name:" + The_Form["HOSTNAME"].value +print "mac:" + The_Form["MAC"].value +cmd="sudo /usr/MythVantage/bin/build_diskless.sh " + The_Form["HOSTNAME"].value + " " + The_Form["MAC"].value +print cmd +os.popen(cmd + " >/dev/null 2>&1 &" ) diff --git a/abs/core/supplemental-web/cgi/serverkey.cgi b/abs/core/supplemental-web/cgi/serverkey.cgi new file mode 100644 index 0000000..ee54480 --- /dev/null +++ b/abs/core/supplemental-web/cgi/serverkey.cgi @@ -0,0 +1,3 @@ +#!/bin/bash +#cat /data/srv/httpd/dsa.pub +cat /data/srv/.nobody_ssh/id_dsa.pub |