Changeset View
Changeset View
Standalone View
Standalone View
stand/lua/menu.lua
Show First 20 Lines • Show All 251 Lines • ▼ Show 20 Lines | return { | ||||
entry_type = core.MENU_SEPARATOR, | entry_type = core.MENU_SEPARATOR, | ||||
name = "Options:", | name = "Options:", | ||||
}, | }, | ||||
menu_entries.kernel_options, | menu_entries.kernel_options, | ||||
menu_entries.boot_options, | menu_entries.boot_options, | ||||
menu_entries.zpool_checkpoints, | menu_entries.zpool_checkpoints, | ||||
menu_entries.boot_envs, | menu_entries.boot_envs, | ||||
menu_entries.chainload, | menu_entries.chainload, | ||||
menu_entries.vendor, | |||||
} | } | ||||
end, | end, | ||||
all_entries = { | all_entries = { | ||||
multi_user = { | multi_user = { | ||||
entry_type = core.MENU_ENTRY, | entry_type = core.MENU_ENTRY, | ||||
name = color.highlight("B") .. "oot Multi user " .. | name = color.highlight("B") .. "oot Multi user " .. | ||||
color.highlight("[Enter]"), | color.highlight("[Enter]"), | ||||
-- Not a standard menu entry function! | -- Not a standard menu entry function! | ||||
▲ Show 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | chainload = { | ||||
func = function() | func = function() | ||||
loader.perform("chain " .. | loader.perform("chain " .. | ||||
loader.getenv('chain_disk')) | loader.getenv('chain_disk')) | ||||
end, | end, | ||||
visible = function() | visible = function() | ||||
return loader.getenv('chain_disk') ~= nil | return loader.getenv('chain_disk') ~= nil | ||||
end, | end, | ||||
alias = {"l", "L"}, | alias = {"l", "L"}, | ||||
}, | |||||
vendor = { | |||||
entry_type = core.MENU_ENTRY, | |||||
visible = false, | |||||
}, | }, | ||||
}, | }, | ||||
} | } | ||||
menu.default = menu.welcome | menu.default = menu.welcome | ||||
-- current_alias_table will be used to keep our alias table consistent across | -- current_alias_table will be used to keep our alias table consistent across | ||||
-- screen redraws, instead of relying on whatever triggered the redraw to update | -- screen redraws, instead of relying on whatever triggered the redraw to update | ||||
-- the local alias_table in menu.process. | -- the local alias_table in menu.process. | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |