add ability to remove list and config from a wizard
[enigma2.git] / lib / python / Components / Harddisk.py
index 0fc17d6901eda55e6d3f35b4058fdac6f8ebbd38..ca77e56f962eb11f3fc87d0fab1405386de9b375 100644 (file)
@@ -103,7 +103,8 @@ class Harddisk:
 
        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"
@@ -126,6 +127,8 @@ class Harddisk:
                res = os.system("mkdir /hdd/movies")
                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()