git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hdd format (initialize) works now
[enigma2.git]
/
lib
/
python
/
Components
/
Harddisk.py
diff --git
a/lib/python/Components/Harddisk.py
b/lib/python/Components/Harddisk.py
index c50f0b8c435c1e8dd1698906a2b07e19e7891c26..e925acd1337c2eafd0d0d23b79599d4c0ab929f0 100644
(file)
--- a/
lib/python/Components/Harddisk.py
+++ b/
lib/python/Components/Harddisk.py
@@
-21,6
+21,9
@@
class Harddisk:
self.prochdx = num2prochdx(index)
self.devidex = "/dev/ide/host%d/bus%d/target%d/lun0/" % (host, bus, target)
self.prochdx = num2prochdx(index)
self.devidex = "/dev/ide/host%d/bus%d/target%d/lun0/" % (host, bus, target)
+ def index(self):
+ return self.index
+
def capacity(self):
procfile = tryOpen(self.prochdx + "capacity")
def capacity(self):
procfile = tryOpen(self.prochdx + "capacity")
@@
-150,7
+153,7
@@
class HarddiskManager:
if hddNum > 8:
break
if hddNum > 8:
break
-
+
def HDDList(self):
list = [ ]
for hd in self.hdd:
def HDDList(self):
list = [ ]
for hd in self.hdd:
@@
-175,3
+178,8
@@
class HarddiskManager:
list.append((hdd, hd))
return list
list.append((hdd, hd))
return list
+
+
+harddiskmanager = HarddiskManager()
+
+