il fallait que sa puisse passer sur un cv

This commit is contained in:
Marc
2022-02-17 14:19:08 +01:00
parent 1edb531e1a
commit 551505c014
37 changed files with 13 additions and 20 deletions
+31
View File
@@ -0,0 +1,31 @@
//@ts-check
function panic() {
console.log("/!\\ INIT PANIK /!\\ LOSE CHIBRE")
while(1) {}
}
async function main() {
try {
const initd = require('./initd.js')
const reboot = require('./reboot.js')
const { fHook } = require("./hook.js")
console.clear()
await initd()
//chainload into sheebr
await fHook("/usr/bin/sheebr.js")
reboot.disableCtrlAltSupr()
reboot.powerOff()
console.log("End of init reached")
reboot.enableCtrlAltSupr()
panic()
} catch(e) {
console.log(e)
panic()
}
}
main()