From: Ronny Strutz Date: Tue, 30 Aug 2005 23:37:28 +0000 (+0000) Subject: removed debug and add ide-host X-Git-Tag: 2.6.0~5686 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/f47d06efc863945909f6095eae5d88c755168fd6?hp=78950dbe85f5eafb3adb817eef742654d1f84e5a removed debug and add ide-host --- 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") diff --git a/lib/python/Screens/HarddiskSetup.py b/lib/python/Screens/HarddiskSetup.py index 00158288..b644fd99 100644 --- a/lib/python/Screens/HarddiskSetup.py +++ b/lib/python/Screens/HarddiskSetup.py @@ -27,6 +27,7 @@ class HarddiskSetup(Screen): }) def hddInitialize(self): + #some protection for the exhibition (IFA 2005) if self.hdd.getIndex() == 2: #CF print "not a good idea!" self.session.open(MessageBox, "not a good idea - this will kill our rootfs!") @@ -49,5 +50,3 @@ class HarddiskSelection(Screen): def okbuttonClick(self): selection = self["hddlist"].getCurrent() self.session.open(HarddiskSetup, selection[1]) - print "ok" - pass