FreeBSD Bugzilla – Attachment 197710 Details for
Bug 231610
loader menu shown even with autoboot_delay=-1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Lift autoboot_delay handling up a level
autoboot-delay.diff (text/plain), 1.16 KB, created by
Kyle Evans
on 2018-10-02 13:11:55 UTC
(
hide
)
Description:
Lift autoboot_delay handling up a level
Filename:
MIME Type:
Creator:
Kyle Evans
Created:
2018-10-02 13:11:55 UTC
Size:
1.16 KB
patch
obsolete
>Index: stand/lua/menu.lua >=================================================================== >--- stand/lua/menu.lua (revision 339040) >+++ stand/lua/menu.lua (working copy) >@@ -401,9 +401,22 @@ function menu.process(menudef, keypress) > end > > function menu.run() >+ local delay = loader.getenv("autoboot_delay") >+ >+ if delay ~= nil and delay:lower() == "no" then >+ delay = nil >+ end >+ delay = tonumber(delay) or 10 >+ >+ if delay == -1 then >+ core.boot() >+ return >+ end >+ > menu.draw(menu.default) >- local autoboot_key = menu.autoboot() > >+ local autoboot_key = menu.autoboot(delay) >+ > menu.process(menu.default, autoboot_key) > drawn_menu = nil > >@@ -411,19 +424,11 @@ function menu.run() > print("Exiting menu!") > end > >-function menu.autoboot() >- local ab = loader.getenv("autoboot_delay") >- if ab ~= nil and ab:lower() == "no" then >- return nil >- elseif tonumber(ab) == -1 then >- core.boot() >- end >- ab = tonumber(ab) or 10 >- >+function menu.autoboot(delay) > local x = loader.getenv("loader_menu_timeout_x") or 4 > local y = loader.getenv("loader_menu_timeout_y") or 23 > >- local endtime = loader.time() + ab >+ local endtime = loader.time() + delay > local time > local last > repeat
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231610
:
197710
|
197716