made setup.lua spawn nshd on headless systems

This commit is contained in:
Izaya 2017-09-04 02:10:03 +10:00
parent e82af803ab
commit 621cc397a2
1 changed files with 3 additions and 1 deletions

View File

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