mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
lualoader: Execute menu_timeout_command at the end of menu autoboot
Instead of hardcoding "boot", respect menu_timeout_command from Forth. It still defaults to 'boot', so this will not be a functional change for most.
This commit is contained in:
parent
dc4e028468
commit
a76f8a5bc2
1 changed files with 2 additions and 1 deletions
|
|
@ -448,8 +448,9 @@ function menu.autoboot()
|
|||
|
||||
loader.delay(50000)
|
||||
until time <= 0
|
||||
core.boot()
|
||||
|
||||
local cmd = loader.getenv("menu_timeout_command") or "boot"
|
||||
loader.interpret(cmd)
|
||||
end
|
||||
|
||||
return menu
|
||||
|
|
|
|||
Loading…
Reference in a new issue