From a5b66300dbffe10823c6346f6d716a23d239062f Mon Sep 17 00:00:00 2001 From: rodrigc Date: Tue, 3 Jun 2014 14:50:51 +0000 Subject: [PATCH] MFC r266938: 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 git-svn-id: svn://svn.freebsd.org/base/stable/10@267010 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/boot/forth/brand.4th | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sys/boot/forth/brand.4th b/sys/boot/forth/brand.4th index b6f22c8f4..28d3c5c1d 100644 --- a/sys/boot/forth/brand.4th +++ b/sys/boot/forth/brand.4th @@ -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 ; -- 2.45.0