added a way to increase the timer for sebios
This commit is contained in:
parent
cd1036eeef
commit
b8d244056c
15
sebios.lua
15
sebios.lua
@ -64,6 +64,8 @@ do
|
||||
if gA and sA then
|
||||
local gP,cy = component.proxy(gA),1
|
||||
gP.bind(sA)
|
||||
local sx, sy = gP.getResolution()
|
||||
gP.fill(1,1,sx,sy," ")
|
||||
local function wl(s)
|
||||
gP.set(1,cy,s)
|
||||
cy=cy+1
|
||||
@ -74,24 +76,19 @@ do
|
||||
for k,v in ipairs(bootdevs) do
|
||||
wl(tostring(k-1).." "..v.." "..component.type(v).." "..component.invoke(v,"getLabel"))
|
||||
end
|
||||
while computer.uptime() < 5 do
|
||||
local timer = 5
|
||||
while computer.uptime() < timer do
|
||||
t,_,c = computer.pullSignal(0.5)
|
||||
if t == "key_down" and c > 47 and c < 58 then
|
||||
computer.setBootAddress(bootdevs[c-47])
|
||||
wl("Boot device set to "..bootdevs[c-47])
|
||||
elseif t == "key_down" and c == 27 then
|
||||
timer = timer + 10
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
while computer.uptime() < 2 do
|
||||
t,_,c = computer.pullSignal(0.5)
|
||||
if t == "key_down" and c > 47 and c < 58 then
|
||||
computer.setBootAddress(bootdevs[c-47])
|
||||
wl("Boot device set to "..bootdevs[c-47])
|
||||
end
|
||||
end
|
||||
|
||||
local init, reason
|
||||
if computer.getBootAddress() then
|
||||
init, reason = tryLoadFrom(computer.getBootAddress())
|
||||
|
Loading…
Reference in New Issue
Block a user