2018-11-03 03:05:41 +11:00
|
|
|
os.spawn(function()
|
|
|
|
print(_OSVERSION,tostring(computer.totalMemory()/1024).."K memory")
|
|
|
|
for k,v in pairs(fd) do
|
|
|
|
if v.t == "t" then
|
2019-01-08 18:05:20 +11:00
|
|
|
os.setenv("t") = k
|
2018-11-03 03:05:41 +11:00
|
|
|
print("Spawning Lua prompt for "..tostring(k))
|
2019-01-08 18:05:20 +11:00
|
|
|
os.setenv("PWD","/boot")
|
2018-11-03 03:05:41 +11:00
|
|
|
os.spawn(function() print(pcall(function() while true do
|
|
|
|
io.write(_VERSION.."> ")
|
|
|
|
tResult = {pcall(load(io.read()))}
|
|
|
|
for k,v in pairs(tResult) do
|
|
|
|
print(v)
|
|
|
|
end
|
|
|
|
end end)) end,"lua prompt")
|
|
|
|
end
|
|
|
|
end end,"init")
|