From 71b21ba74e1e32117d7d5671f5d94c0ab2ecc433 Mon Sep 17 00:00:00 2001 From: briggs Date: Wed, 9 Aug 1995 03:22:50 +0000 Subject: [PATCH] Don't go bonkers if we don't have a real swap device. --- sys/arch/mac68k/mac68k/swapgeneric.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/arch/mac68k/mac68k/swapgeneric.c b/sys/arch/mac68k/mac68k/swapgeneric.c index ecef38c49b45..23c7405ee5ad 100644 --- a/sys/arch/mac68k/mac68k/swapgeneric.c +++ b/sys/arch/mac68k/mac68k/swapgeneric.c @@ -1,4 +1,4 @@ -/* $NetBSD: swapgeneric.c,v 1.6 1995/07/18 04:10:56 briggs Exp $ */ +/* $NetBSD: swapgeneric.c,v 1.7 1995/08/09 03:22:50 briggs Exp $ */ /* * Copyright (c) 1982, 1986 Regents of the University of California. @@ -131,7 +131,12 @@ gotit: } } verybad: - printf("no suitable %s -- hit any key to reboot\n", root_swap); + printf("no suitable %s", root_swap); + if (root_swap[0] == 's') { + printf("\n"); + goto doswap; + } + printf(" -- hit any key to reboot\n", root_swap); cngetc(); doboot(); printf(" Automatic reboot failed.\n");