From owner-freebsd-questions@FreeBSD.ORG Tue Nov 30 04:27:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E859616A4CE for ; Tue, 30 Nov 2004 04:27:25 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D2FA43D45 for ; Tue, 30 Nov 2004 04:27:25 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CYzbo-0006wK-00 for freebsd-questions@freebsd.org; Tue, 30 Nov 2004 05:27:24 +0100 Received: from [217.246.205.9] (helo=oliverfuchs.onlinehome.de) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1CYzbl-0002LJ-00 for freebsd-questions@freebsd.org; Tue, 30 Nov 2004 05:27:22 +0100 Received: from oliverfuchs.onlinehome.de (oliverfuchs.onlinehome.de [127.0.0.1])iAU4R7Cw003562 for ; Tue, 30 Nov 2004 05:27:12 +0100 (CET) (envelope-from oliverfuchs1@oliverfuchs.onlinehome.de) Received: (from oliverfuchs1@localhost)iAU4BR5R003394 for freebsd-questions@freebsd.org; Tue, 30 Nov 2004 05:11:27 +0100 (CET) (envelope-from oliverfuchs1) Date: Tue, 30 Nov 2004 05:11:27 +0100 From: Oliver Fuchs To: freebsd-questions@freebsd.org Message-ID: <20041130041127.GC2938@oliverfuchs.onlinehome.de> Mail-Followup-To: freebsd-questions@freebsd.org References: <6.2.0.14.0.20041129155640.06ebca38@64.7.153.2> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <6.2.0.14.0.20041129155640.06ebca38@64.7.153.2> User-Agent: Mutt/1.4.1i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: Re: controlling the default boot drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 04:27:26 -0000 On Mon, 29 Nov 2004, Mike Tancsa wrote: > > I have been experimenting with booting from a USB key vs the HD. If I sit > on the console, and hit F1, the next time the machine boots, F1 will be the > default. If I hit F5, the next time it will be F5 (the USB key drive in > this case). How can I do this from the shell on a RELENG_5 box. e.g. I > boot from HD (F1) I want to then without having to sit on the console, make > it boot from USB drive, as if I hit F5. Is this boot0cfg ? If so, I cant > seem to get it to work. > To set the F1 or F5 as default I have added this file /usr/local/etc/rc.d/boot0cfg.sh: #!/bin/sh /usr/sbin/boot0cfg -vs 1 ad0 where "ad0" is the drive you want to boot as default the next time. > Thanks, > > ---Mike > > > > -------------------------------------------------------------------- > Mike Tancsa, tel +1 519 651 3400 > Sentex Communications, mike@sentex.net > Providing Internet since 1994 www.sentex.net > Cambridge, Ontario Canada www.sentex.net/mike > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- ... don't touch the bang bang fruit