コード例 #1
0
ファイル: runner.py プロジェクト: dhirajkhatiwada1/uludag
 def slotReboot(self):
     
     try:
         mount.umount(ctx.consts.target_dir + "/home")
     except:
         pass
     mount.umount(ctx.consts.target_dir)
     reboot.fastreboot()
コード例 #2
0
ファイル: Goodbye.py プロジェクト: dhirajkhatiwada1/uludag
    def execute(self):

        ctx.screens.nextDisabled()
        ctx.screens.prevDisabled()

        self.info.show()
        self.info.setAlignment(QLabel.AlignCenter)

#        cmd = yali.sysutils.find_executable("reboot")
#        print cmd
#        os.system(cmd)
        try:
            mount.umount(ctx.consts.target_dir + "/home")
        except:
            pass
        mount.umount(ctx.consts.target_dir)
        reboot.fastreboot()
コード例 #3
0
ファイル: Goodbye.py プロジェクト: dhirajkhatiwada1/uludag
    def execute(self):

        ctx.screens.disableNext()
        ctx.screens.disablePrev()

        self.info.show()
        self.info.setAlignment(QLabel.AlignCenter)

#        cmd = yali.sysutils.find_executable("reboot")
#        print cmd
#        os.system(cmd)
        try:
            #FIXME: this is a dirty and temporary workaround.. will be removed.
            os.chmod(ctx.consts.target_dir + "/var/tmp", 01777)
            mount.umount(ctx.consts.target_dir + "/home")
        except:
            pass

        mount.umount(ctx.consts.target_dir)
        reboot.fastreboot()
コード例 #4
0
    def execute(self):

        ctx.screens.disableNext()

        self.info.show()
        self.info.setAlignment(QLabel.AlignCenter)

        # FIXME: this is a dirty and temporary workaround.. will be removed.
        #        os.chmod(ctx.consts.target_dir + "/var/tmp", 01777)

        # remove cd...
        w = RebootWidget(self)
        self.dialog = WarningDialog(w, self)
        self.dialog.exec_loop()

        try:
            mount.umount(ctx.consts.target_dir + "/home")
        except:
            pass

        mount.umount(ctx.consts.target_dir)
        reboot.fastreboot()
コード例 #5
0
ファイル: Welcome.py プロジェクト: dhirajkhatiwada1/uludag
 def slotReboot(self):
     reboot.fastreboot()