mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04:00
stand: Add "Loader needs updating" to the first menu item"
When the boot loader version is too old, add a warning to the boot menu to maybe catch people's attention. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D45890
This commit is contained in:
parent
a2fd7ae879
commit
0eac99f76e
1 changed files with 10 additions and 0 deletions
|
|
@ -245,6 +245,7 @@ menu.welcome = {
|
|||
boot_entry_1, boot_entry_2 = multi_user, single_user
|
||||
end
|
||||
return {
|
||||
loader_needs_upgrade,
|
||||
boot_entry_1,
|
||||
boot_entry_2,
|
||||
menu_entries.prompt,
|
||||
|
|
@ -411,6 +412,15 @@ menu.welcome = {
|
|||
end,
|
||||
alias = {"l", "L"},
|
||||
},
|
||||
loader_needs_upgrade = {
|
||||
entry_type = core.MENU_SEPARATOR,
|
||||
name = function()
|
||||
return "Loader requires updating"
|
||||
end
|
||||
visible = function()
|
||||
return core.loaderTooOld()
|
||||
end
|
||||
},
|
||||
vendor = {
|
||||
entry_type = core.MENU_ENTRY,
|
||||
visible = function()
|
||||
|
|
|
|||
Loading…
Reference in a new issue