add hddcount
[enigma2.git] / lib / python / Components / Harddisk.py
index a638977061674e19ef18aa7fde4754fbe4c1f7b7..b51d7a6736a6899524aa34e7af8961173f0be0b0 100644 (file)
@@ -169,6 +169,12 @@ class HarddiskManager:
                        if hddNum > 8:
                                break
 
+       def HDDCount(self):
+               cnt = 0
+               for hd in self.hdd:
+                       cnt = cnt + 1
+               return cnt      
+
        def HDDList(self):
                list = [ ]
                for hd in self.hdd: