From owner-freebsd-current Fri Jan 8 05:39:13 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA24467 for freebsd-current-outgoing; Fri, 8 Jan 1999 05:39:13 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from backup.af.speednet.com.au (af.speednet.com.au [202.135.206.244]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA24459 for ; Fri, 8 Jan 1999 05:39:08 -0800 (PST) (envelope-from andyf@speednet.com.au) Received: from backup.zippynet.iol.net.au (backup.zippynet.iol.net.au [172.22.2.4]) by backup.af.speednet.com.au (8.9.1/8.9.1) with ESMTP id AAA07708 for ; Sat, 9 Jan 1999 00:38:31 +1100 (EST) Date: Sat, 9 Jan 1999 00:38:31 +1100 (EST) From: Andy Farkas X-Sender: andyf@backup.zippynet.iol.net.au To: freebsd-current@FreeBSD.ORG Subject: Re: beep, beep, beep! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 8 Jan 1999, Andy Farkas wrote: > Shouldn't the new boot code be beeping at us? :) > Seeing as how I mentioned it, here is my effort: patch to /usr/src/sys/boot/common/boot.c: --- common/boot.c 1999/01/08 08:23:01 1.1 +++ common/boot.c 1999/01/08 13:13:34 @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: boot.c,v 1.1 1999/01/08 08:23:01 root Exp $ + * $Id: boot.c,v 1.5 1999/01/08 13:12:59 root Exp root $ */ /* @@ -155,11 +155,22 @@ void autoboot_maybe() { - char *cp; + unsigned int beeps = 3; + char *cp, *ep; cp = getenv("autoboot_delay"); - if ((autoboot_tried == 0) && ((cp == NULL) || strcasecmp(cp, "NO"))) + if ((autoboot_tried == 0) && ((cp == NULL) || strcasecmp(cp, "NO"))) { + if ((cp = getenv("autoboot_beeps"))) { + beeps = strtol(cp, &ep, 0); + if ((cp == ep) || (beeps > 3)) + beeps = 3; + } + + while (beeps--) + printf("\a"); + autoboot(-1, NULL); /* try to boot automatically */ + } } int [end patch] -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speed Internet Services http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message