opnsense-src/stand/lua
Jose Luis Duran 8f652eb792
stand: Fix brand positioning on framebuffer console
The drawer.lua script ignores the values in loader_brand_x and
loader_brand_y on framebuffer consoles, always positioning the brand at
(1, 1).

Allow it to be positioned by accepting the x and y values just like the
text version.  For example:

/boot/lua/gfx-nanobsd.lua:

    return {
    	brand = {
    		graphic = {
    			""
    		},
    		requires_color = true,
    		image = "/boot/images/freebsd-logo-rev.png"
    	}
    }

/boot/loader.conf.d/bootloader.conf:

    loader_logo="none"
    loader_brand="nanobsd"
    loader_brand_x="15"

PR:		255202
Reviewed by:	manu, imp
Approved by:	emaste (mentor)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D49092

(cherry picked from commit 7d1d7f42302d80c33243501601b77323acc0717f)
2025-03-03 05:29:47 +00:00
..
cli.lua Revert "loader/lua: Remove pager shim" 2024-08-01 08:49:54 -06:00
cli.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
color.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
color.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
config.lua Revert "loader/lua: Remove workaround for command_error" 2024-08-01 08:49:54 -06:00
config.lua.8 stand/lua: always allow overriding with local config files 2024-04-16 13:54:21 -06:00
core.lua loader: Fix boot menu on BIOS 2024-11-03 17:51:24 -07:00
core.lua.8 stand: Print a warning of the loader is too old 2024-08-01 08:49:54 -06:00
drawer.lua stand: Fix brand positioning on framebuffer console 2025-03-03 05:29:47 +00:00
drawer.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
gfx-beastie.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
gfx-beastiebw.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
gfx-fbsdbw.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
gfx-orb.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
gfx-orbbw.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
gfx.lua.8 loader: Move gfx functions to gfx.lua.8 2024-04-16 13:54:24 -06:00
hook.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
hook.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
loader.conf.lua.5 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
loader.lua loader: Load platform entropy even without menu 2024-09-29 08:24:53 -07:00
loader.lua.8 loader: Add loader.exit 2024-04-16 13:54:28 -06:00
Makefile loader: Move gfx functions to gfx.lua.8 2024-04-16 13:54:24 -06:00
Makefile.depend loader: add target for dirdeps build 2024-04-15 20:32:03 -06:00
menu.lua loader: Use Cyan instead of Blue for some menu items 2024-12-28 11:14:58 -07:00
menu.lua.8 manuals: Misc syntax fixes 2024-11-04 12:13:50 -04:00
password.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
password.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
screen.lua loader: Fix 0 vs 1 confusion for column numbers 2024-12-28 11:14:41 -07:00
screen.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00