From a76f8a5bc2885af67ab21d2b29a294879094241d Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Sat, 3 Mar 2018 17:18:40 +0000 Subject: [PATCH] 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. --- stand/lua/menu.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua index a950ebf07fa0..53c56c631123 100644 --- a/stand/lua/menu.lua +++ b/stand/lua/menu.lua @@ -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