add possibilty to hide menu entries when needed hardware is not available
[enigma2.git] / lib / python / Components / UsageConfig.py
index 73538eafc41dc0961c8804f735370ac698f915d3..36d149cf974253b53e06a11826a2bac1944c852b 100644 (file)
@@ -1,5 +1,6 @@
 from config import ConfigSubsection, ConfigYesNo, config, ConfigSelection, ConfigText, ConfigInteger
 from enigma import Misc_Options, setTunerTypePriorityOrder;
+from SystemInfo import SystemInfo
 import os
 
 def InitUsageConfig():
@@ -63,4 +64,6 @@ def InitUsageConfig():
                        Misc_Options.getInstance().set_12V_output(0)
        config.usage.output_12V.addNotifier(set12VOutput)
 
+       SystemInfo["12V_Output"] = Misc_Options.getInstance().detected_12V_output()
+
        config.usage.keymap = ConfigText(default = "/usr/share/enigma2/keymap.xml")