add possibilty to hide menu entries when needed hardware is not available
[vuplus_dvbapp] / lib / python / Components / Harddisk.py
index 16736b2..8253544 100644 (file)
@@ -3,6 +3,8 @@ from os import system, listdir, statvfs, popen, makedirs
 from Tools.Directories import SCOPE_HDD, resolveFilename
 from Tools.CList import CList
 
+from SystemInfo import SystemInfo
+
 def tryOpen(filename):
        try:
                procFile = open(filename)
@@ -215,6 +217,8 @@ class HarddiskManager:
                                hdd = Harddisk(hddNum)
                                self.hdd.append(hdd)
 
+               SystemInfo["Harddisc"] = len(self.hdd) > 0
+
                # currently, this is just an enumeration of what's possible,
                # this probably has to be changed to support automount stuff.
                # still, if stuff is mounted into the correct mountpoints by