diff options
Diffstat (limited to 'lib/python/Components/Harddisk.py')
| -rw-r--r-- | lib/python/Components/Harddisk.py | 12 |
1 files changed, 9 insertions, 3 deletions
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") |
