summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/mythwelcome-config.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-03-15 18:01:01 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-03-15 18:01:01 (GMT)
commit390cbf1170ddc80564de91673ddf83fc1737210e (patch)
tree245459560a39a9b4edd83c2ad5ffad43984a7500 /abs/core/LinHES-system/mythwelcome-config.py
parent90d2d0a5437b2c5d2eabcd02e90d241a069753ca (diff)
downloadlinhes_pkgbuild-390cbf1170ddc80564de91673ddf83fc1737210e.zip
linhes_pkgbuild-390cbf1170ddc80564de91673ddf83fc1737210e.tar.gz
linhes_pkgbuild-390cbf1170ddc80564de91673ddf83fc1737210e.tar.bz2
LinHES-system: mythwelcome-config.py: disable timeout if not running mythwelcome and check if Master_backend
Diffstat (limited to 'abs/core/LinHES-system/mythwelcome-config.py')
-rwxr-xr-xabs/core/LinHES-system/mythwelcome-config.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/abs/core/LinHES-system/mythwelcome-config.py b/abs/core/LinHES-system/mythwelcome-config.py
index 01638a2..204a6e9 100755
--- a/abs/core/LinHES-system/mythwelcome-config.py
+++ b/abs/core/LinHES-system/mythwelcome-config.py
@@ -17,8 +17,12 @@ mythdb.settings[localhostname].MythShutdownXTermCmd = u'xterm'
mythdb.settings[localhostname].MythWelcomeStartFECmd = u'/usr/LH/bin/mythfrontend-start'
# mythtv-setup Shutdown/Wakeup options
-if mythdb.settings.NULL.idleTimeoutSecs == u'0' or mythdb.settings.NULL.idleTimeoutSecs == None:
- mythdb.settings.NULL.idleTimeoutSecs = u'40'
+if mythdb.settings[localhostname].HostSystemType == u'Master_backend':
+ if mythdb.settings[localhostname].HostUseMythWelcome == u'1':
+ if mythdb.settings.NULL.idleTimeoutSecs == u'0' or mythdb.settings.NULL.idleTimeoutSecs == None:
+ mythdb.settings.NULL.idleTimeoutSecs = u'60'
+ 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'