made print log

This commit is contained in:
2026-01-15 16:22:25 -05:00
parent 7d8055a703
commit b48f926053
2 changed files with 5 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ local kernel=...
local fs=require("sys.fs")
syscall.TTY_bind("tty0")
for i,v in ipairs(kernel.)
local files = fs.list("/bin/startup")
if not files then error("Failed to list /bin/startup") end
for i,v in ipairs(files) do
@@ -12,7 +13,7 @@ for i,v in ipairs(files) do
if not startupFunc then
kernel.log("Error loading startup script '" .. filepath .. "': " .. err, "ERROR")
else
kernel.hpv.spawn(function()
syscall.HPV_spawn(function()
local status, err = pcall(startupFunc)
if not status then
kernel.log("Error executing startup script '" .. filepath .. "': " .. err, "ERROR")