stand/lua: Correct interpretation of autoboot_delay
autoboot_delay=NO is documented to wait for input and *not* autoboot, which is the exact opposite of the current behavior. Additionally, autoboot_delay=-1 is documented to disallow the user from interrupting the boot (i.e. autoboot immediately), which was not previously honored. This also fixes the case insensitive comparison to be truly case insensitive. This is kind of nit-picky, but the previous version would only accept "no" and "NO".
This commit is contained in:
parent
3a0a07d0ea
commit
702b460d41
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329426
@ -353,7 +353,9 @@ function menu.autoboot()
|
|||||||
menu.already_autoboot = true;
|
menu.already_autoboot = true;
|
||||||
|
|
||||||
local ab = loader.getenv("autoboot_delay");
|
local ab = loader.getenv("autoboot_delay");
|
||||||
if ab == "NO" or ab == "no" then
|
if (ab ~= nil) and (ab:lower() == "no") then
|
||||||
|
return;
|
||||||
|
elseif (tonumber(ab) == -1) then
|
||||||
core.boot();
|
core.boot();
|
||||||
end
|
end
|
||||||
ab = tonumber(ab) or 10;
|
ab = tonumber(ab) or 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user