14 lines
228 B
Lua
14 lines
228 B
Lua
s("init",function()
|
|
local f=fopen("boot:/init.cfg","rb")
|
|
write("")
|
|
if f then
|
|
c=freadall(f)
|
|
for l in c:gmatch("[^\n]+") do
|
|
write("[init] "..l..": ")
|
|
local pf=fload(l)
|
|
print(pcall(pf))
|
|
C.yield()
|
|
end
|
|
end
|
|
end)
|