Maybe actually added it?

This commit is contained in:
Izaya 2017-05-15 17:18:15 +10:00
parent 52248755b1
commit 669e877513

View File

@ -1,8 +1,6 @@
do s("init",function()
if _OSVERSION and _BD then
print("Starting ".._OSVERSION.." built at ".._BD)
end
local f=fopen("boot:/init.cfg","rb") local f=fopen("boot:/init.cfg","rb")
write("")
if f then if f then
local c="" local c=""
local nc=fread(f,2048) local nc=fread(f,2048)
@ -11,7 +9,12 @@ do
nc=fread(f,2048) nc=fread(f,2048)
end end
for l in c:gmatch("[^\n]+") do for l in c:gmatch("[^\n]+") do
print("[init] "..l) write("[init] "..l..": ")
local pf=fload(l)
print(pcall(pf))
end end
end end
end if _OSVERSION and _BD then
print("Started ".._OSVERSION.." (built at ".._BD..")")
end
end)