From f47d06efc863945909f6095eae5d88c755168fd6 Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Tue, 30 Aug 2005 23:37:28 +0000 Subject: removed debug and add ide-host --- lib/python/Components/Harddisk.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index dcf76570..a6389770 100644 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -25,11 +25,17 @@ class Harddisk: return self.index def bus(self): - #TODO: add the host + ret = "" + + if self.index & 2: + ret = "External (CF) - " + else: + ret = "Internal - " + if self.index & 1: - return "Slave" + return ret + "Slave" else: - return "Master" + return ret + "Master" def capacity(self): procfile = tryOpen(self.prochdx + "capacity") -- cgit v1.2.3