misc/74577: [patch] decorating space in Beastie menu

Hanspeter Roth hampi at rootshell.be
Wed Dec 1 01:40:24 PST 2004


>Number:         74577
>Category:       misc
>Synopsis:       [patch] decorating space in Beastie menu
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 01 09:40:23 GMT 2004
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list