summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/misc_status_config.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-09-01 21:55:46 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-09-01 21:55:46 (GMT)
commit2fc24e3699697bf406338eea7b9f8c475399e79b (patch)
tree7a2693c501853ffc78ff69cf0c8c848b16ec731b /abs/core/LinHES-system/misc_status_config.py
parente0c0e2b0962375dfc62740cafd1620df719d4d31 (diff)
downloadlinhes_pkgbuild-2fc24e3699697bf406338eea7b9f8c475399e79b.zip
linhes_pkgbuild-2fc24e3699697bf406338eea7b9f8c475399e79b.tar.gz
linhes_pkgbuild-2fc24e3699697bf406338eea7b9f8c475399e79b.tar.bz2
LinHES-system: Add scripts for misc status in MythWeb. closes #845.
Diffstat (limited to 'abs/core/LinHES-system/misc_status_config.py')
-rwxr-xr-xabs/core/LinHES-system/misc_status_config.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/misc_status_config.py b/abs/core/LinHES-system/misc_status_config.py
new file mode 100755
index 0000000..0a0ba6c
--- /dev/null
+++ b/abs/core/LinHES-system/misc_status_config.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python2
+
+# This script will configure the myth db to use the misc_status_info scripts
+
+from socket import gethostname
+from MythTV import MythDB
+mythdb = MythDB()
+localhostname = gethostname()
+
+# mythtv-setup
+if mythdb.settings[localhostname].MiscStatusScript == u'':
+ mythdb.settings[localhostname].MiscStatusScript = u'/usr/LH/bin/misc_status_info.sh'
+ print 'The MythTV database setting MiscStatusScript was updated to /usr/LH/bin/misc_status_info.sh.'
+else:
+ print 'The MythTV database setting MiscStatusScript is already set and will not be updated.'