git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement often wished feature :)
[enigma2.git]
/
lib
/
python
/
Components
/
Harddisk.py
diff --git
a/lib/python/Components/Harddisk.py
b/lib/python/Components/Harddisk.py
index b51d7a6736a6899524aa34e7af8961173f0be0b0..ca77e56f962eb11f3fc87d0fab1405386de9b375 100644
(file)
--- a/
lib/python/Components/Harddisk.py
+++ b/
lib/python/Components/Harddisk.py
@@
-103,7
+103,8
@@
class Harddisk:
def unmount(self):
cmd = "/bin/umount " + self.devidex + "part*"
def unmount(self):
cmd = "/bin/umount " + self.devidex + "part*"
- os.system(cmd)
+ res = os.system(cmd)
+ return (res >> 8)
def createPartition(self):
cmd = "/sbin/sfdisk -f " + self.devidex + "disc"
def createPartition(self):
cmd = "/sbin/sfdisk -f " + self.devidex + "disc"
@@
-123,9
+124,11
@@
class Harddisk:
return (res >> 8)
def createMovieFolder(self):
return (res >> 8)
def createMovieFolder(self):
- res = os.system("mkdir /hdd/movie")
+ res = os.system("mkdir /hdd/movie
s
")
return (res >> 8)
return (res >> 8)
+ errorList = [ _("Everything is fine"), _("Creating partition failed"), _("Mkfs failed"), _("Mount failed"), _("Create movie folder failed"), _("Unmount failed")]
+
def initialize(self):
self.unmount()
def initialize(self):
self.unmount()