summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/cgi
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-07 19:40:39 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-07 19:40:39 (GMT)
commitf441710103513f9621672152b889bfda7f50f064 (patch)
treeacbcec242d3444383c46162dd27d964c1eeac9e4 /abs/core/supplemental-web/cgi
parentf57e609997d91dbdfaa2e18b1e6e7e95876831bc (diff)
downloadlinhes_pkgbuild-f441710103513f9621672152b889bfda7f50f064.zip
linhes_pkgbuild-f441710103513f9621672152b889bfda7f50f064.tar.gz
linhes_pkgbuild-f441710103513f9621672152b889bfda7f50f064.tar.bz2
tilda, wmaker e16 settings: move /reneame to their proper place in the tree.
Diffstat (limited to 'abs/core/supplemental-web/cgi')
-rw-r--r--abs/core/supplemental-web/cgi/beclear.cgi4
-rw-r--r--abs/core/supplemental-web/cgi/bestop.cgi6
-rw-r--r--abs/core/supplemental-web/cgi/diskless.py11
-rw-r--r--abs/core/supplemental-web/cgi/serverkey.cgi3
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