cleaned up sinit a bit. Still sucks.
This commit is contained in:
parent
36442751b9
commit
e7ad197307
@ -2,19 +2,12 @@ s("init",function()
|
|||||||
local f=fopen("boot:/init.cfg","rb")
|
local f=fopen("boot:/init.cfg","rb")
|
||||||
write("")
|
write("")
|
||||||
if f then
|
if f then
|
||||||
local c=""
|
c=freadall(f)
|
||||||
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
|
for l in c:gmatch("[^\n]+") do
|
||||||
write("[init] "..l..": ")
|
write("[init] "..l..": ")
|
||||||
local pf=fload(l)
|
local pf=fload(l)
|
||||||
print(pcall(pf))
|
print(pcall(pf))
|
||||||
|
C.yield()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if _OSVERSION and _BD then
|
end)
|
||||||
print("Started ".._OSVERSION.." (built at ".._BD..")")
|
|
||||||
end
|
|
||||||
end,{["sI"]=1})
|
|
||||||
|
Loading…
Reference in New Issue
Block a user