opnsense-src/stand/lua
Jose Luis Duran 7d1d7f4230
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
2025-02-24 14:36:10 +00:00
..
cli.lua Revert "loader/lua: Remove pager shim" 2024-07-29 16:56:55 -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-07-29 16:57:13 -06:00
config.lua.8 stand/lua: always allow overriding with local config files 2024-02-02 12:04:57 -07:00
core.lua loader: set boot_safe when safe mode is selected 2024-12-13 22:31:28 -06:00
core.lua.8 stand: Print a warning of the loader is too old 2024-07-29 16:57:30 -06:00
drawer.lua stand: Fix brand positioning on framebuffer console 2025-02-24 14:36:10 +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 loader: Fix orb position 2025-01-09 08:13:05 +01:00
gfx-orbbw.lua loader: Fix orb position 2025-01-09 08:13:05 +01:00
gfx.lua.8 loader: Move gfx functions to gfx.lua.8 2024-02-15 20:59:23 -07: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-22 00:35:48 -07:00
loader.lua.8 loader: Add loader.exit 2024-02-26 20:49:46 -07:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend loader: add target for dirdeps build 2023-11-02 19:35:08 -04:00
menu.lua loader: Rework kernel menu section 2025-01-09 08:13:43 +01:00
menu.lua.8 manuals: Misc syntax fixes 2024-10-15 17:20:47 -03: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-09-24 14:18:42 -06:00
screen.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00