Пример #1
0
def restart_os():
    try:
        Kernel.Prepare_For_shutdown()
        time.sleep(1)
        Kernel.startup()

    except AttributeError:
        Kernel.Crash("Second_Restart_Error", True)
Пример #2
0
def restart():
    try:
        Kernel.Clear()
        Kernel.Prepare_For_shutdown()
        Boot.Boot()

    except AttributeError:
        Kernel.Crash("Second_Restart_Error", True)
Пример #3
0
def CrashHandler(Custom_Errorcode, Enable_Custom_Errorcode):
    if Enable_Custom_Errorcode:
        Kernel.Crash(message, Custom_Errorcode)

    else:
        Kernel.Crash(message, Error_Code)