add -r flag, for RB_DFLTROOT

This commit is contained in:
cgd 1994-03-30 11:19:12 +00:00
parent d4c116040f
commit 2ed6c26523
2 changed files with 14 additions and 8 deletions

View File

@ -25,7 +25,7 @@
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*
* $Id: boot.c,v 1.17 1994/02/04 00:02:42 mycroft Exp $
* $Id: boot.c,v 1.18 1994/03/30 11:19:12 cgd Exp $
*/
/*
@ -246,7 +246,7 @@ getbootdev(howto)
int *howto;
{
char c, *ptr = namebuf;
printf("Boot: [[[%s(%d,%c)]%s][-s][-a][-d]] :- ",
printf("Boot: [[[%s(%d,%c)]%s][-a][-d][-r][-s]] :- ",
devs[maj], unit, 'a'+part, name);
if (gets(namebuf)) {
while (c = *ptr) {
@ -260,14 +260,17 @@ getbootdev(howto)
case 'a':
*howto |= RB_ASKNAME;
continue;
case 's':
*howto |= RB_SINGLE;
case 'b':
*howto |= RB_HALT;
continue;
case 'd':
*howto |= RB_KDB;
continue;
case 'b':
*howto |= RB_HALT;
case 'r':
*howto |= RB_DFLTROOT;
continue;
case 's':
*howto |= RB_SINGLE;
continue;
}
else {

View File

@ -1,10 +1,13 @@
/*
* $Id: version.c,v 1.18 1994/02/04 16:08:55 mycroft Exp $
* $Id: version.c,v 1.19 1994/03/30 11:19:28 cgd Exp $
*/
/*
* NOTE ANY CHANGES YOU MAKE TO THE BOOTBLOCKS HERE.
*
* 1.18 -> 1.19
* add a '-r' option, to specify RB_DFLTROOT
*
* 1.17 -> 1.18
* removed some more code we don't need for BDB. (mycroft)
*
@ -23,4 +26,4 @@
* look in boot.c revision logs
*/
char *version = "$Revision: 1.18 $";
char *version = "$Revision: 1.19 $";