made it only spawn a tty and keyboard driver when the machine has the hardware

This commit is contained in:
Izaya 2017-08-04 17:46:11 +10:00
parent 219d3a8326
commit 45d0b85887
1 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,9 @@
tty(component.list("gpu")(),component.list("screen")())
log(pcall(function()
local ka = component.list("keyboard")()
kbd(ka)
end))
if component.list("gpu")() and component.list("screen")() and component.list("keyboard")() then
tty(component.list("gpu")(),component.list("screen")())
log(pcall(function()
local ka = component.list("keyboard")()
kbd(ka)
end))
end
luash()
computer.beep()