diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2025-04-14 06:38:28 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2025-04-17 08:18:48 +0000 |
| commit | a962800a09a45b8f702ebd1a06b8f20bc84e97b1 (patch) | |
| tree | 7ca386c1d1797905f7b7441bfefe799e30d904c9 /stand/lua | |
| parent | 8e727fb47afaaa61a39a24d24d58ff0061fe87d9 (diff) | |
loader: Add loader_menu
If set to 'none' then the menu isn't displayed.
The 'brand' and 'logo' part are stil displayed.
Differential Revision: https://reviews.freebsd.org/D49820
Reviewed by: imp, kevans
Sponsored by: Beckhoff Automation GmbH & Co. KG
Diffstat (limited to 'stand/lua')
| -rw-r--r-- | stand/lua/drawer.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua index 1bf741b2373e..ee33ae753916 100644 --- a/stand/lua/drawer.lua +++ b/stand/lua/drawer.lua @@ -166,6 +166,10 @@ local function drawmenu(menudef) local x = menu_position.x local y = menu_position.y + if string.lower(loader.getenv("loader_menu") or "") == "none" then + return + end + x = x + shift.x y = y + shift.y @@ -276,6 +280,10 @@ local function drawbox() local menu_header_align = loader.getenv("loader_menu_title_align") local menu_header_x + if string.lower(loader.getenv("loader_menu") or "") == "none" then + return + end + x = x + shift.x y = y + shift.y |
