Fix env + refacto/opti shutdown + gitignore comp
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user