summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/cgi
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2013-01-05 02:40:34 (GMT)
committerJames Meyer <james.meyer@operamail.com>2013-01-05 02:40:34 (GMT)
commit8535c8a04075454c676a548dbec40673b0ad62e0 (patch)
treeae7a7d6294cc96e1fd9e45556a51fec5a0fa14a3 /abs/core/supplemental-web/cgi
parent6623efa259ecac69b28c204f6100700a774adb2d (diff)
downloadlinhes_pkgbuild-8535c8a04075454c676a548dbec40673b0ad62e0.zip
linhes_pkgbuild-8535c8a04075454c676a548dbec40673b0ad62e0.tar.gz
linhes_pkgbuild-8535c8a04075454c676a548dbec40673b0ad62e0.tar.bz2
supplemental-web: Two major additions here.
1) introduce the static dev node mapping as produced by autocard. Currently located under system->List static dev nodes for tuners. This link will pull in mappings from the MBE and all SLAVE boxes. The query will pull the data from the host each time it's requested, so the slave machines must be on to see the mapping. The data is pulled over http from the slave box by calling cardlist.cgi, which will read in /etc/udev/mv-persisten-video.description. 2) Add the ability to upload and download system backup files from the MBE. Also reworked the css to make it a tad prettier. refs #893 refs #892
Diffstat (limited to 'abs/core/supplemental-web/cgi')
-rwxr-xr-xabs/core/supplemental-web/cgi/cardlist.cgi16
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/core/supplemental-web/cgi/cardlist.cgi b/abs/core/supplemental-web/cgi/cardlist.cgi
new file mode 100755
index 0000000..5ba7343
--- /dev/null
+++ b/abs/core/supplemental-web/cgi/cardlist.cgi
@@ -0,0 +1,16 @@
+#!/usr/bin/env python2
+print "Content-type: text/html"
+print
+exportfile = '/etc/udev/mv-persistent-video.description'
+try:
+ f = open(exportfile,"r")
+ for line in f.readlines():
+ if line.startswith("#"):
+ continue
+ item = line.split(":")
+ if len(item) <= 1 :
+ continue
+ print line
+except :
+ print ""
+ print "Couldn't read static tuner map"