summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/misc_status_config.py
blob: 0a0ba6c1dcb2c3d69460450761baeca9edbfc00c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.'