diff options
author | Jessica Clarke <jrtc27@FreeBSD.org> | 2022-09-02 19:30:40 +0000 |
---|---|---|
committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2022-09-02 19:30:40 +0000 |
commit | 9b17aa27406f3716383e71c6687d53599a8f8d8a (patch) | |
tree | 8e6399e333c2db35d9016062c32f59f9743d45e6 | |
parent | 74ed2e8ab20264595bfbf67c117462df68b856ce (diff) | |
download | src-9b17aa27406f3716383e71c6687d53599a8f8d8a.tar.gz src-9b17aa27406f3716383e71c6687d53599a8f8d8a.zip |
-rw-r--r-- | stand/lua/menu.lua | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua index f1a4f07a8d73..400dbf3d469b 100644 --- a/stand/lua/menu.lua +++ b/stand/lua/menu.lua @@ -60,6 +60,10 @@ local function bootenvSet(env) config.reload() end +local function multiUserPrompt() + return loader.getenv("loader_menu_multi_user_prompt") or "Multi user" +end + -- Module exports menu.handlers = { -- Menu handlers take the current menu and selected entry as parameters, @@ -263,11 +267,16 @@ menu.welcome = { all_entries = { multi_user = { entry_type = core.MENU_ENTRY, - name = color.highlight("B") .. "oot Multi user " .. - color.highlight("[Enter]"), + name = function() + return color.highlight("B") .. "oot " .. + multiUserPrompt() .. " " .. + color.highlight("[Enter]") + end, -- Not a standard menu entry function! - alternate_name = color.highlight("B") .. - "oot Multi user", + alternate_name = function() + return color.highlight("B") .. "oot " .. + multiUserPrompt() + end, func = function() core.setSingleUser(false) core.boot() |