diff --git a/modules/util/sinit.lua b/modules/util/sinit.lua new file mode 100644 index 0000000..a093ab0 --- /dev/null +++ b/modules/util/sinit.lua @@ -0,0 +1,17 @@ +do + if _OSVERSION and _BD then + print("Starting ".._OSVERSION.." built at ".._BD) + end + local f=fopen("boot:/init.cfg","rb") + if f then + local c="" + local nc=fread(f,2048) + while nc ~= nil and nc ~= "" do + c=c..nc + nc=fread(f,2048) + end + for l in c:gmatch("[^\n]+") do + print("[init] "..l) + end + end +end