aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Harddisk.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/Harddisk.py')
-rw-r--r--lib/python/Components/Harddisk.py4
1 files changed, 4 insertions, 0 deletions
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