summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand/netboot
diff options
context:
space:
mode:
authorgvf <gvf@cvs.openbsd.org>1997-04-22 16:01:22 +0000
committergvf <gvf@cvs.openbsd.org>1997-04-22 16:01:22 +0000
commit298980c825a818ca34bb758f6b694b1e55707ad7 (patch)
tree813b45f7d9b2891b8869cdbb425bb5a428d2f87e /sys/arch/mvme68k/stand/netboot
parent27fdc6e7be08eb69d3a218bd1e91a88824da224d (diff)
minor clean to -q
Diffstat (limited to 'sys/arch/mvme68k/stand/netboot')
-rw-r--r--sys/arch/mvme68k/stand/netboot/boot.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/mvme68k/stand/netboot/boot.c b/sys/arch/mvme68k/stand/netboot/boot.c
index 784134f2858..1797c1fb153 100644
--- a/sys/arch/mvme68k/stand/netboot/boot.c
+++ b/sys/arch/mvme68k/stand/netboot/boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.c,v 1.5 1996/05/16 02:55:36 chuck Exp $ */
+/* $OpenBSD: boot.c,v 1.6 1997/04/22 16:01:21 gvf Exp $ */
/*-
* Copyright (c) 1995 Theo de Raadt
@@ -82,7 +82,7 @@ char line[80];
main()
{
char *cp, *file;
- int ask = 0, howto;
+ int ask = 0, howto, ret;
printf(">> OpenBSD MVME%x netboot [%s]\n", bugargs.cputyp, version);
/* cycle in the correct args */
@@ -90,7 +90,7 @@ main()
bugargs.arg_end = bugargs.nbarg_end;
*bugargs.arg_end = 0; /* ensure */
- parse_args(&file, &howto);
+ ret = parse_args(&file, &howto);
for (;;) {
if (ask) {
@@ -102,9 +102,13 @@ main()
while (cp < (line + sizeof(line) - 1) && *cp)
cp++;
bugargs.arg_end = cp;
- parse_args(&file, &howto);
+ ret =parse_args(&file, &howto);
}
}
+ if (ret) {
+ printf("boot: -q returning to MVME-Bug\n");
+ break;
+ }
exec_mvme(file, howto);
printf("boot: %s: %s\n", file, strerror(errno));
ask = 1;