mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-16 09:31:35 -05:00
17 lines
461 B
Lua
17 lines
461 B
Lua
xpcall(function()
|
|
os.setenv("PWD","/boot")
|
|
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)))
|
|
print(_OSVERSION.." - "..tostring(math.floor(computer.totalMemory()/1024)).."K RAM")
|
|
os.spawnfile("/boot/exec/shell.lua")
|
|
end
|
|
end
|
|
while true do
|
|
coroutine.yield()
|
|
end
|
|
end,function(e) dprint(e) end,"init")
|