diff options
author | Warner Losh <imp@FreeBSD.org> | 2020-09-28 16:19:21 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2020-09-28 16:19:21 +0000 |
commit | 8f3b36103b20049e207e64039ad3e99ffb5b51e2 (patch) | |
tree | 98f0cf839c0f4816fb21accd68829b6c22b4b3df /stand/lua/menu.lua | |
parent | fbc6840baeb0607c6d4542f298d0a8f7135b3c21 (diff) | |
download | src-8f3b36103b20049e207e64039ad3e99ffb5b51e2.tar.gz src-8f3b36103b20049e207e64039ad3e99ffb5b51e2.zip |
Notes
Diffstat (limited to 'stand/lua/menu.lua')
-rw-r--r-- | stand/lua/menu.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua index 103ec9c00050..4eb801a16e2d 100644 --- a/stand/lua/menu.lua +++ b/stand/lua/menu.lua @@ -244,6 +244,7 @@ menu.welcome = { boot_entry_2, menu_entries.prompt, menu_entries.reboot, + menu_entries.console, { entry_type = core.MENU_SEPARATOR, }, @@ -284,6 +285,16 @@ menu.welcome = { end, alias = {"s", "S"}, }, + console = { + entry_type = core.MENU_ENTRY, + name = function() + return color.highlight("C") .. "ons: " .. core.getConsoleName() + end, + func = function() + core.nextConsoleChoice() + end, + alias = {"c", "C"}, + }, prompt = { entry_type = core.MENU_RETURN, name = color.highlight("Esc") .. "ape to loader prompt", |