opnsense-src/stand/lua
Stéphane Rochoy 3eb3a802a3 stand/lua: per-product conf if requested via product_vars
If product_vars is set, it must be a space separated list of environment
variable names to walk through to guess the product. Each time a product can be
guessed (i.e., the corresponding variable is defined), prepend
/boot/loader.conf.d/PRODUCT/ to loader_conf_dirs.

It can be typically used as follow:

    smbios.system.planar.maker="PLANAR_MAKER"
    smbios.system.planar.product="PLANAR_PRODUCT"
    smbios.system.product="PRODUCT"
    uboot.m_product="M_PRODUCT"
    product_vars="smbios.system.planar.maker smbios.system.planar.product smbios.system.product uboot.m_product"

to read files found in the following directories, in that order:

    /boot/loader.conf.d/PLANAR_MAKER
    /boot/loader.conf.d/PLANAR_PRODUCT
    /boot/loader.conf.d/PRODUCT
    /boot/loader.conf.d/M_PRODUCT

Reviewed by: imp, kevans
Pull Request: https://github.com/freebsd/freebsd-src/pull/759

[[ The commit, revert, commit has been squashed dpwn ]]
(cherry picked from commit c343eedc6db381ac76e489f8ae0304898b71c5db)
(cherry picked from commit 994865caf250ea2a59b7b842e44680931e8b19f6)
(cherry picked from commit 754cac4b283eb024a3a6a194130199c860e32ebf)
2024-04-16 13:54:21 -06:00
..
cli.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -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 stand/lua: per-product conf if requested via product_vars 2024-04-16 13:54:21 -06:00
config.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
core.lua loader: lua: assume late ACPI detection if the feature isn't enabled 2024-04-15 20:32:05 -06:00
core.lua.8 stand: Retire setting hw.ata.wc: it doesn't exist. 2024-04-15 20:32:05 -06:00
drawer.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06: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
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 Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend loader: add target for dirdeps build 2024-04-15 20:32:03 -06:00
menu.lua loader: improve lua ACPI detection and handling 2024-04-15 20:32:04 -06:00
menu.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06: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 Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
screen.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00