From ga9@buffy.york.ac.uk  Tue Aug 10 09:00:47 2004
Return-Path: <ga9@buffy.york.ac.uk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5DCAC16A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Aug 2004 09:00:47 +0000 (GMT)
Received: from mail-gw1.york.ac.uk (mail-gw1.york.ac.uk [144.32.128.246])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9480643D41
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Aug 2004 09:00:46 +0000 (GMT)
	(envelope-from ga9@buffy.york.ac.uk)
Received: from buffy.york.ac.uk (buffy.york.ac.uk [144.32.226.160])
	by mail-gw1.york.ac.uk (8.12.10/8.12.10) with ESMTP id i7A90hH6011626
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Aug 2004 10:00:43 +0100 (BST)
Received: from buffy.york.ac.uk (localhost [127.0.0.1])
	by buffy.york.ac.uk (8.12.11/8.12.11) with ESMTP id i7A90hWk071900
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Aug 2004 10:00:43 +0100 (BST)
	(envelope-from ga9@buffy.york.ac.uk)
Received: (from root@localhost)
	by buffy.york.ac.uk (8.12.11/8.12.11/Submit) id i7A90h3t071899;
	Tue, 10 Aug 2004 10:00:43 +0100 (BST)
	(envelope-from ga9)
Message-Id: <200408100900.i7A90h3t071899@buffy.york.ac.uk>
Date: Tue, 10 Aug 2004 10:00:43 +0100 (BST)
From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
Reply-To: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Change to src/release/Makefile to aid documentation
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70245
>Category:       bin
>Synopsis:       [patch] [build] Change to src/release/Makefile to aid documentation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ru
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 10 09:10:22 GMT 2004
>Closed-Date:    
>Last-Modified:  Sat May 24 20:33:48 UTC 2008
>Originator:     Gavin Atkinson
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD buffy.york.ac.uk 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Thu Jun 24 15:03:29 BST 2004 root@buffy.york.ac.uk:/usr/obj/usr/src/sys/GENERIC i386

>Description:
	Section 1.5.6 in the INSTALL.TXT file distributed with releases describes how to install FreeBSD over a serial console when FreeBSD has failed to detect the fact there is no keyboard attached. This description relies on being able to count beeps so that you know when to press space and break to the loader. However, (I believe since revision 1.835 of src/release/Makefile) there are no longer any beeps which makes it hard to document. Attached is a patch to change this so that a beep is heard before the beastie menu. This patch has survived a full i386 make release with expected results.

	I am currently working on bringing the installation documentation up-to-date ready for 5.3-RELEASE but it is not possible to correct section 1.5.6 without this change.
>How-To-Repeat:
	Boot off the install floppies and try to guess when the beastie menu is on screen without looking.
>Fix:

	(Patch also at http://www.devrandom.co.uk/freebsd/releasebeep.diff)

Index: release/Makefile
===================================================================
RCS file: /usr/cvs/src/release/Makefile,v
retrieving revision 1.850
diff -u -r1.850 Makefile
--- release/Makefile	6 Aug 2004 17:07:40 -0000	1.850
+++ release/Makefile	9 Aug 2004 14:04:06 -0000
@@ -1130,7 +1130,9 @@
 	@cp ${BOOTDIR}/loader ${IMAGEDIR}/boot
 .endif
 	@cp -Rp ${BOOTDIR}/*.4th ${BOOTDIR}/defaults ${BOOTDIR}/loader.help \
-	    ${BOOTDIR}/loader.rc ${IMAGEDIR}/boot
+	    ${IMAGEDIR}/boot
+	@awk '/beastie-start/ {printf "echo \\007\\007\n"} {print}' \
+	    ${BOOTDIR}/loader.rc > ${IMAGEDIR}/boot/loader.rc
 .if exists(${HINTSFILE})
 	@gzip -9nc ${HINTSFILE} > ${IMAGEDIR}/boot/device.hints.gz
 .endif

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->re 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Sat Dec 18 15:38:20 GMT 2004 
Responsible-Changed-Why:  
src/release is re's. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70245 
Responsible-Changed-From-To: re->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Tue Oct 24 21:05:56 UTC 2006 
Responsible-Changed-Why:  
I'll fix that; it should also be made to work for CDROM installation. 

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