Fix env + refacto/opti shutdown + gitignore comp

This commit is contained in:
Marc
2021-11-27 17:26:49 +01:00
parent f1b67891e1
commit ec95675837
7 changed files with 72 additions and 30 deletions
+5 -5
View File
@@ -7,8 +7,7 @@ function panic() {
async function main() {
try {
const audio = require('./audio.js')
//@ts-expect-error
const { poweroff, halt } = require('./shutdown.js')
const reboot = require('./reboot.js')
const input = require('./input.js')
const { fHook } = require("./hook.js")
@@ -40,11 +39,12 @@ async function main() {
//chainload into sheebr
await fHook("/usr/bin/sheebr.js")
poweroff()
reboot.disableCtrlAltSupr()
reboot.powerOff()
/*while(1){}
console.log("End of init reached")
panic()*/
reboot.enableCtrlAltSupr()
panic()
} catch(e) {
console.log(e)
panic()