diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-04-07 21:59:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-04-07 21:59:27 (GMT) |
commit | c4ff23fa885a374dfa82b2e6fc17c2ca57966fca (patch) | |
tree | 7c8071f424865875529981be80002e67032cada4 /abs/core/LinHES-system/mythwelcome-config.py | |
parent | 4a914dde9929428b8b05ffe6e176ef177563f329 (diff) | |
download | linhes_pkgbuild-c4ff23fa885a374dfa82b2e6fc17c2ca57966fca.zip linhes_pkgbuild-c4ff23fa885a374dfa82b2e6fc17c2ca57966fca.tar.gz linhes_pkgbuild-c4ff23fa885a374dfa82b2e6fc17c2ca57966fca.tar.bz2 |
LinHES-system: mythwelcome-config.py: idleTimeoutSecs should be set a global and check if setting doesn't exist
LinHES-session: don't run mythwelcome-config.py on every boot, just first.
Diffstat (limited to 'abs/core/LinHES-system/mythwelcome-config.py')
-rwxr-xr-x | abs/core/LinHES-system/mythwelcome-config.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/abs/core/LinHES-system/mythwelcome-config.py b/abs/core/LinHES-system/mythwelcome-config.py index 8cf78c2..01638a2 100755 --- a/abs/core/LinHES-system/mythwelcome-config.py +++ b/abs/core/LinHES-system/mythwelcome-config.py @@ -16,10 +16,9 @@ mythdb.settings[localhostname].MythShutdownPowerOff = u'sudo /sbin/poweroff' mythdb.settings[localhostname].MythShutdownXTermCmd = u'xterm' mythdb.settings[localhostname].MythWelcomeStartFECmd = u'/usr/LH/bin/mythfrontend-start' - # mythtv-setup Shutdown/Wakeup options -if mythdb.settings[localhostname].idleTimeoutSecs == u'0': - mythdb.settings[localhostname].idleTimeoutSecs = u'40' +if mythdb.settings.NULL.idleTimeoutSecs == u'0' or mythdb.settings.NULL.idleTimeoutSecs == None: + mythdb.settings.NULL.idleTimeoutSecs = u'40' mythdb.settings.NULL.WakeupTimeFormat = u'yyyy-MM-ddThh:mm:ss' mythdb.settings.NULL.SetWakeuptimeCommand = u'/usr/bin/mythshutdown --setwakeup $time' |