X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/26d569766a7da60ee54ed9b1116a62a539bb8909..0af48c266741db09f550dd513b5220b188dbb17f:/lib/python/Components/UsageConfig.py diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py index 581e7cea..b3658018 100644 --- a/lib/python/Components/UsageConfig.py +++ b/lib/python/Components/UsageConfig.py @@ -34,6 +34,10 @@ def InitUsageConfig(): ("intermediate", _("Intermediate")), ("expert", _("Expert")) ]) + config.usage.on_long_powerpress = ConfigSelection(default = "show_menu", choices = [ + ("show_menu", _("show shutdown menu")), + ("shutdown", _("immediate shutdown")) ] ) + def setHDDStandby(configElement): os.system("hdparm -S" + configElement.value + " /dev/ide/host0/bus0/target0/lun0/disc") config.usage.hdd_standby.addNotifier(setHDDStandby)