2019-10-27 23:34:02 +11:00
|
|
|
xpcall(function()
|
2019-11-06 14:28:40 +11:00
|
|
|
os.setenv("PWD","/boot")
|
2019-11-04 08:55:04 +11:00
|
|
|
os.spawnfile("/boot/service/getty.lua")
|
|
|
|
coroutine.yield()
|
|
|
|
for k,v in pairs(fs.list("/dev/")) do
|
|
|
|
if v:sub(1,3) == "tty" then
|
|
|
|
dprint(tostring(io.input("/dev/"..v)))
|
|
|
|
dprint(tostring(io.output("/dev/"..v)))
|
2019-11-06 14:31:28 +11:00
|
|
|
print(_OSVERSION.." - "..tostring(math.floor(computer.totalMemory()/1024)).."K RAM")
|
2019-11-04 08:55:04 +11:00
|
|
|
os.spawnfile("/boot/exec/shell.lua")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
while true do
|
|
|
|
coroutine.yield()
|
|
|
|
end
|
|
|
|
end,function(e) dprint(e) end,"init")
|