hdd format (initialize) works now
[enigma2.git] / lib / python / Components / Harddisk.py
index c50f0b8c435c1e8dd1698906a2b07e19e7891c26..e925acd1337c2eafd0d0d23b79599d4c0ab929f0 100644 (file)
@@ -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")
                
@@ -150,7 +153,7 @@ class HarddiskManager:
                        
                        if hddNum > 8:
                                break
-               
+
        def HDDList(self):
                list = [ ]
                for hd in self.hdd:
@@ -175,3 +178,8 @@ class HarddiskManager:
 
                        list.append((hdd, hd))
                return list
+
+
+harddiskmanager = HarddiskManager()
+
+