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:
Kyle Evans 2018-03-03 17:18:40 +00:00
parent dc4e028468
commit a76f8a5bc2

View File

@ -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