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,                            [EMAIL PROTECTED]
> Providing Internet since 1994                    www.sentex.net
> Cambridge, Ontario Canada                         www.sentex.net/mike
> 
> _______________________________________________
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
... don't touch the bang bang fruit
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to