default terminate action

This commit is contained in:
Djeeberjr 2022-02-21 17:46:38 +01:00
parent fd1428c749
commit ec00115216

View File

@ -1,5 +1,6 @@
package kernel;
import cc.OS;
import util.Debug;
import kernel.ui.WindowManager;
import kernel.peripherals.Peripherals.Peripheral;
@ -13,9 +14,14 @@ class Init {
WindowManager.instance = new WindowManager();
MainTerm.instance = new MainTerm();
Log.init();
Net.instance = new Net();
Log.init();
// Register default terminate handler
KernelEvents.instance.onTerminate.handle(_->{
OS.reboot();
});
Debug.printBuildInfo();
}