Maybe actually added it?
This commit is contained in:
parent
52248755b1
commit
669e877513
@ -1,17 +1,20 @@
|
|||||||
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)
|
||||||
while nc ~= nil and nc ~= "" do
|
while nc ~= nil and nc ~= "" do
|
||||||
c=c..nc
|
c=c..nc
|
||||||
nc=fread(f,2048)
|
nc=fread(f,2048)
|
||||||
|
end
|
||||||
|
for l in c:gmatch("[^\n]+") do
|
||||||
|
write("[init] "..l..": ")
|
||||||
|
local pf=fload(l)
|
||||||
|
print(pcall(pf))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
for l in c:gmatch("[^\n]+") do
|
if _OSVERSION and _BD then
|
||||||
print("[init] "..l)
|
print("Started ".._OSVERSION.." (built at ".._BD..")")
|
||||||
end
|
end
|
||||||
end
|
end)
|
||||||
end
|
|
||||||
|
Loading…
Reference in New Issue
Block a user