X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FUsageConfig.py;h=b36580184f0ff308264056826b87a981b7daec6a;hp=581e7cea6ac4b8f7c9fad98414e1209451b2531c;hb=ace3f764c4db999f9e63a904caf14282a7e3626f;hpb=1096b055add5f5f5d5a3ba9f004d335d4567f0ca diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py index 581e7ce..b365801 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)