aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Harddisk.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-02-01 23:15:24 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-02-01 23:15:24 +0000
commitd89be097be4a9ac52166c5f47cc189c5522d3441 (patch)
tree7da4329e4fa22017a7312da52bfe7b1df8a16a02 /lib/python/Components/Harddisk.py
parentec200e0207d0a5ddb91c9c6c4ab8ae1c8f33ecea (diff)
downloadenigma2-d89be097be4a9ac52166c5f47cc189c5522d3441.tar.gz
enigma2-d89be097be4a9ac52166c5f47cc189c5522d3441.zip
add possibilty to hide menu entries when needed hardware is not available
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