X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/f99c09422824f0167ba592e08932136812b4e77a..54042f13aaa98b655f0dfa907ef326430ec65d39:/lib/python/Components/Harddisk.py diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index 16736b20..82535447 100644 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -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