diff --git a/modules/util/sinit.lua b/modules/util/sinit.lua index 8af4ae3..9132c67 100644 --- a/modules/util/sinit.lua +++ b/modules/util/sinit.lua @@ -2,19 +2,12 @@ s("init",function() local f=fopen("boot:/init.cfg","rb") write("") if f then - local c="" - local nc=fread(f,2048) - while nc ~= nil and nc ~= "" do - c=c..nc - nc=fread(f,2048) - end + c=freadall(f) for l in c:gmatch("[^\n]+") do write("[init] "..l..": ") local pf=fload(l) print(pcall(pf)) + C.yield() end end - if _OSVERSION and _BD then - print("Started ".._OSVERSION.." (built at ".._BD..")") - end -end,{["sI"]=1}) +end)