diff options
Diffstat (limited to 'abs/core/LinHES-system/mythwelcome-config.py')
-rwxr-xr-x | abs/core/LinHES-system/mythwelcome-config.py | 15 |
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' |