git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed debug and add ide-host
[enigma2.git]
/
lib
/
python
/
Components
/
Harddisk.py
diff --git
a/lib/python/Components/Harddisk.py
b/lib/python/Components/Harddisk.py
index dcf7657058de9bfff572629cd8540e7e2729a94d..a638977061674e19ef18aa7fde4754fbe4c1f7b7 100644
(file)
--- a/
lib/python/Components/Harddisk.py
+++ b/
lib/python/Components/Harddisk.py
@@
-25,11
+25,17
@@
class Harddisk:
return self.index
def bus(self):
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:
if self.index & 1:
- return "Slave"
+ return
ret +
"Slave"
else:
else:
- return "Master"
+ return
ret +
"Master"
def capacity(self):
procfile = tryOpen(self.prochdx + "capacity")
def capacity(self):
procfile = tryOpen(self.prochdx + "capacity")