aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-08-30 23:37:28 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-08-30 23:37:28 +0000
commitf47d06efc863945909f6095eae5d88c755168fd6 (patch)
treeee2600646037707607660589595b28c0ff9fd0da
parent78950dbe85f5eafb3adb817eef742654d1f84e5a (diff)
downloadenigma2-f47d06efc863945909f6095eae5d88c755168fd6.tar.gz
enigma2-f47d06efc863945909f6095eae5d88c755168fd6.zip
removed debug and add ide-host
-rw-r--r--lib/python/Components/Harddisk.py12
-rw-r--r--lib/python/Screens/HarddiskSetup.py3
2 files changed, 10 insertions, 5 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")
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