From hampi@rootshell.be  Wed Dec  1 09:39:34 2004
Return-Path: <hampi@rootshell.be>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F03FD16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Dec 2004 09:39:33 +0000 (GMT)
Received: from smtp.hispeed.ch (mxout.hispeed.ch [62.2.95.247])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EF36A43D66
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Dec 2004 09:39:32 +0000 (GMT)
	(envelope-from hampi@rootshell.be)
Received: from gicco.homeip.net (217-162-157-43.dclient.hispeed.ch [217.162.157.43])
	by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with ESMTP id iB19dVil010502
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Dec 2004 10:39:31 +0100
Received: from goofy.here (localhost.here [127.0.0.1])
	by gicco.homeip.net (8.13.1/8.13.1) with ESMTP id iB19dUKT002697
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Dec 2004 10:39:31 +0100 (CET)
	(envelope-from idefix@goofy.here)
Received: (from idefix@localhost)
	by goofy.here (8.13.1/8.13.1/Submit) id iB19dU7J002696;
	Wed, 1 Dec 2004 10:39:30 +0100 (CET)
	(envelope-from idefix)
Message-Id: <200412010939.iB19dU7J002696@goofy.here>
Date: Wed, 1 Dec 2004 10:39:30 +0100 (CET)
From: Hanspeter Roth <hampi@rootshell.be>
Reply-To: hampi@rootshell.be
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] decorating space in Beastie menu
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         74577
>Category:       misc
>Synopsis:       [patch] decorating space in Beastie menu
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 01 09:40:23 GMT 2004
>Closed-Date:    Wed Jan 11 16:32:45 GMT 2006
>Last-Modified:  Wed Jan 11 16:32:45 GMT 2006
>Originator:     Hanspeter Roth
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD goofy.here 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	The Beastie menu makes it convenient choosing boot options.
	The Beastie decorating space right to the menu reflects the 
	preference of the majority or all of the FreeBSD developers.
	Their opinion is documented in
	http://www.freebsd.org/copyright/daemon.html .

	However there are users which have a different opinion and which
	don't like the Beastie mascot to be displayed during boot time.

	The question is: are such users
	- welcome
	- tolerated
	- disliked.

	In case they are more or less tolerated what should they do in order
	to switch the Beastie splash screen?

	- renounce of the Beastie menu (beastie_disable="YES") ?
	- spend some hours to dig in mailing lists or dig in
	  http://www.forth.org/tutorials.html ?
	- or have an convenient flag in loaders.conf that allows to
	  run Beastie menu but display some other decoration?

	This patch is related to PR 70231. Just the default behavior is 
	different. The Beastie is still displayed by default. But it
	allows to turn the Beastie splash off more easily.


diff -ru sys.orig/boot/forth/beastie.4th sys/boot/forth/beastie.4th
--- sys.orig/boot/forth/beastie.4th	Sat Oct 30 15:45:13 2004
+++ sys/boot/forth/beastie.4th	Wed Dec  1 10:08:16 2004
@@ -94,7 +94,33 @@
 	     at-xy ."        `--{__________)"
 ;
 
+: print-banner ( x y -- )
+	2dup at-xy ."  " 1+
+	2dup at-xy ."  " 1+
+	2dup at-xy ."        ______" 1+
+	2dup at-xy ."       / ____/_______  ___" 1+
+	2dup at-xy ."      / /_  / ___/ _ \/ _ \" 1+
+	2dup at-xy ."     / __/ / /  /  __/  __/" 1+
+	2dup at-xy ."    /_/   /_/   \___/\___/" 1+
+	2dup at-xy ."  " 1+
+	2dup at-xy ."                ____ _____ ____" 1+
+	2dup at-xy ."               / __ ) ___// __ \" 1+
+	2dup at-xy ."              / __  \__ \/ / / /" 1+
+	2dup at-xy ."             / /_/ /__/ / /_/ /" 1+
+	     at-xy ."            /_____/____/_____/"
+	     exit
+;
+
 : print-beastie ( x y -- )
+	s" loader_banner" getenv
+	dup -1 = if
+		drop
+	else
+		s" YES" compare-insensitive 0= if
+			print-banner
+			exit
+		then
+	then
 	s" loader_color" getenv
 	dup -1 = if
 		drop
diff -ru sys.orig/boot/forth/loader.conf sys/boot/forth/loader.conf
--- sys.orig/boot/forth/loader.conf	Sun Nov  7 18:01:08 2004
+++ sys/boot/forth/loader.conf	Wed Dec  1 10:06:24 2004
@@ -36,6 +36,7 @@
 bitmap_name="splash.bmp"	# Set this to the name of the bmp or pcx file
 bitmap_type="splash_image_data" # and place it on the module_path
 loader_color="NO"		# Set this to YES to enable splash screen colors
+loader_banner="NO"		# Set thie to YES to display banner else Beastie
 
 
 ##############################################################

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: matteo 
State-Changed-When: Wed Jan 11 16:32:15 UTC 2006 
State-Changed-Why:  
This was fixed in . and in RELENG_6 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74577 
>Unformatted:
