aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Harddisk.py
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-08-30 13:39:36 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-08-30 13:39:36 +0000
commit58bb15bea1fb425c5192efe95090f6ff36b6e8d9 (patch)
tree7123787bc0a75d7142c3672180e92c2e8d9f46aa /lib/python/Components/Harddisk.py
parenta18ba5d26b53f40121b92d7de35c71d50c8a5d9f (diff)
downloadenigma2-58bb15bea1fb425c5192efe95090f6ff36b6e8d9.tar.gz
enigma2-58bb15bea1fb425c5192efe95090f6ff36b6e8d9.zip
hdd format (initialize) works now
actual theres no additional question when you use the red shortcut ;) (msgbox is missing)
Diffstat (limited to 'lib/python/Components/Harddisk.py')
-rw-r--r--lib/python/Components/Harddisk.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py
index 3c242510..e925acd1 100644
--- a/lib/python/Components/Harddisk.py
+++ b/lib/python/Components/Harddisk.py
@@ -21,6 +21,9 @@ class Harddisk:
self.prochdx = num2prochdx(index)
self.devidex = "/dev/ide/host%d/bus%d/target%d/lun0/" % (host, bus, target)
+ def index(self):
+ return self.index
+
def capacity(self):
procfile = tryOpen(self.prochdx + "capacity")