now the code is working for /dev/ide/discs/discX mounts and direkt mounts to /dev...
authorghost <andreas.monzner@multimedia-labs.de>
Mon, 2 Feb 2009 12:11:04 +0000 (13:11 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Mon, 2 Feb 2009 12:11:04 +0000 (13:11 +0100)
lib/python/Components/Harddisk.py

index 1fc629a..9cf9b4a 100644 (file)
@@ -97,7 +97,7 @@ class Harddisk:
                        line = procfile.readline()
                        if line == "":
                                break
                        line = procfile.readline()
                        if line == "":
                                break
-                       if line.startswith(self.devidex):
+                       if line.startswith(self.devidex) or line.startswith(self.devidex2):
                                parts = line.strip().split(" ")
                                try:
                                        stat = statvfs(parts[1])
                                parts = line.strip().split(" ")
                                try:
                                        stat = statvfs(parts[1])