1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Allow customization of the brand displayed in the boot menu.

If the user specifies in /boot/loader.conf:

    loader_brand="mycustom-brand"

Then "mycustom-brand" will be executed instead of "fbsd-logo".

Submitted by:    alfred
Obtained from:   FreeNAS
This commit is contained in:
Craig Rodrigues 2014-06-01 04:08:45 +00:00
parent b1b4b37f4d
commit 7bfe91e85c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=266938

View File

@ -56,6 +56,8 @@ variable brandY
\ NAME DESCRIPTION
\ fbsd FreeBSD logo
\
\ NOTE: Setting `loader_brand' to the value of an existing function
\ (such as "mycustom-brand") will cause that symbol to be executed.
\ NOTE: Setting `loader_brand' to an undefined value (such as "none") will
\ prevent any brand from being drawn.
\
@ -87,5 +89,14 @@ variable brandY
2drop exit
then
\ if it refers to a raw symbol then run that function
sfind if
brandX @ brandY @
2 roll
execute
else
drop
then
2drop
;