Reorganisation de tout le systéme de build + debuggage os loader au autre scripts

This commit is contained in:
Marc
2022-02-26 19:23:34 +01:00
parent fc41d4bec0
commit 24c03e8090
25 changed files with 188 additions and 107 deletions
+7 -2
View File
@@ -1,5 +1,6 @@
//@ts-check
const fs = require('fs')
function panic() {
console.log("/!\\ INIT PANIK /!\\ LOSE CHIBRE")
while(1) {}
@@ -16,7 +17,11 @@ async function main() {
await initd()
//chainload into sheebr
await fHook("/usr/bin/sheebr.js")
if(fs.existsSync("/usr/bin/sheebr.js")) {
await fHook("/usr/bin/sheebr.js")
} else {
console.log('wrong shell path')
}
reboot.disableCtrlAltSupr()
reboot.powerOff()