summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/mythwelcome-config.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-01-03 21:50:55 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-01-03 21:50:55 (GMT)
commit24f840f1ac56c1f78272d4b0de50844cb876aa1b (patch)
tree898b53ed94625774d134d6341545ecb03cf8e686 /abs/core/LinHES-system/mythwelcome-config.py
parente92f8c21e93d7fe48e4c302942ce0e0b66b7c97c (diff)
downloadlinhes_pkgbuild-24f840f1ac56c1f78272d4b0de50844cb876aa1b.zip
linhes_pkgbuild-24f840f1ac56c1f78272d4b0de50844cb876aa1b.tar.gz
linhes_pkgbuild-24f840f1ac56c1f78272d4b0de50844cb876aa1b.tar.bz2
LinHES-system: idle.py: fix wrong status on standby
mythwelcome-config.py: add settings so mythbackend will alsow work to shutdown and use the mythfrontend idle screen
Diffstat (limited to 'abs/core/LinHES-system/mythwelcome-config.py')
-rwxr-xr-xabs/core/LinHES-system/mythwelcome-config.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/abs/core/LinHES-system/mythwelcome-config.py b/abs/core/LinHES-system/mythwelcome-config.py
index 204a6e9..5a8727f 100755
--- a/abs/core/LinHES-system/mythwelcome-config.py
+++ b/abs/core/LinHES-system/mythwelcome-config.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python2
-# This script will configure the myth db to allow MythWelcome to wake and shutdown the system.
+# This script will configure the myth db to allow MythWelcome
+# or mythbackend to wake and shutdown the system.
from socket import gethostname
from MythTV import MythDB
@@ -11,8 +12,8 @@ localhostname = gethostname()
mythdb.settings[localhostname].MythShutdownNvramCmd = u'sudo sh -c \"/usr/LH/bin/mythwelcome-set-alarm.sh $time\"'
mythdb.settings[localhostname].MythShutdownWakeupTimeFmt = u'time_t'
mythdb.settings[localhostname].MythShutdownNvramRestartCmd = u''
-mythdb.settings[localhostname].MythShutdownReboot = u'sudo /sbin/reboot'
-mythdb.settings[localhostname].MythShutdownPowerOff = u'sudo /sbin/poweroff'
+mythdb.settings[localhostname].MythShutdownReboot = u'sudo /usr/bin/reboot'
+mythdb.settings[localhostname].MythShutdownPowerOff = u'sudo /usr/bin/poweroff'
mythdb.settings[localhostname].MythShutdownXTermCmd = u'xterm'
mythdb.settings[localhostname].MythWelcomeStartFECmd = u'/usr/LH/bin/mythfrontend-start'
@@ -24,7 +25,7 @@ if mythdb.settings[localhostname].HostSystemType == u'Master_backend':
else:
mythdb.settings.NULL.idleTimeoutSecs = u'0'
-mythdb.settings.NULL.WakeupTimeFormat = u'yyyy-MM-ddThh:mm:ss'
-mythdb.settings.NULL.SetWakeuptimeCommand = u'/usr/bin/mythshutdown --setwakeup $time'
-mythdb.settings.NULL.ServerHaltCommand = u'/usr/bin/mythshutdown --shutdown'
-mythdb.settings.NULL.preSDWUCheckCommand = u'/usr/LH/bin/idle.py -s -d -l -r'
+mythdb.settings.NULL.WakeupTimeFormat = u'time_t'
+mythdb.settings.NULL.SetWakeuptimeCommand = u'sudo /usr/LH/bin/mythwelcome-set-alarm.sh $time'
+mythdb.settings.NULL.ServerHaltCommand = u'sudo /usr/bin/poweroff'
+mythdb.settings.NULL.preSDWUCheckCommand = u'/usr/LH/bin/idle.py -s -d -l'