made newer installer that does not require tar stuff

This commit is contained in:
2026-03-21 00:54:39 -04:00
parent df62414229
commit 7deefc83ca
107 changed files with 648 additions and 353 deletions

View File

@@ -0,0 +1 @@
local a=...local b=require("fs")a.log("Sysinit started...")for c,d in pairs(a.processes)do a.log("Spawning kernel task "..c)syscall.spawn(function()local e,f=pcall(d)if not e then a.log("Error executing kernel task '"..c.."': "..f,"ERROR",0xFF0000)else a.log("Successfully executed kernel task: "..c)end end,c)end;if not b.exists("/bin/startup")then b.mkdir("/bin/startup")end;local g=b.list("/bin/startup")if not g then error("Failed to list /bin/startup")end;for c,d in ipairs(g)do if d:sub(-4)==".lua"then local h="/bin/startup/"..d;a.log("Executing startup script: "..h)local i,f=load(b.readAllText(h),"@"..h)if not i then a.log("Error loading startup script '"..h.."': "..f,"ERROR",0xFF0000)else syscall.spawn(function()syscall.setuid(1)local e,f=pcall(i)if not e then a.log("Error executing startup script '"..h.."': "..f,"ERROR",0xFF0000)else a.log("Successfully executed startup script: "..h)end end,"startup:"..d)end end end;while true do sleep(5)a.saveLog()end