From 58bb15bea1fb425c5192efe95090f6ff36b6e8d9 Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Tue, 30 Aug 2005 13:39:36 +0000 Subject: hdd format (initialize) works now actual theres no additional question when you use the red shortcut ;) (msgbox is missing) --- lib/python/Components/Harddisk.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/python/Components') 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") -- cgit v1.2.3