Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110188921
D36418.id110086.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1006 B
Referenced Files
None
Subscribers
None
D36418.id110086.diff
View Options
diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua
--- a/stand/lua/menu.lua
+++ b/stand/lua/menu.lua
@@ -60,6 +60,10 @@
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 @@
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()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 15, 8:23 PM (1 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16664498
Default Alt Text
D36418.id110086.diff (1006 B)
Attached To
Mode
D36418: lualoader: Add loader_menu_multi_user_prompt config variable
Attached
Detach File
Event Timeline
Log In to Comment