diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1999-04-22 00:35:05 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1999-04-22 00:35:05 +0000 |
commit | a02620472ea0ccad224f05406115fac59a21392c (patch) | |
tree | f046f837feb63d295110ce5f4dc9f4c6502dc9a5 | |
parent | 047a45ed0d3e3e0cb7c5b450741fbf0004317919 (diff) |
Follow proper OpenBSD shutdown/power off semantics.
-rw-r--r-- | sys/arch/mac68k/mac68k/machdep.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index f699ed6baed..094b2656d34 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.56 1999/02/15 08:56:05 todd Exp $ */ +/* $OpenBSD: machdep.c,v 1.57 1999/04/22 00:35:04 downsj Exp $ */ /* $NetBSD: machdep.c,v 1.134 1997/02/14 06:15:30 scottr Exp $ */ /* @@ -608,15 +608,22 @@ boot(howto) doshutdownhooks(); if (howto & RB_HALT) { - printf("System halted.\n\n"); - via_shutdown(); -#ifndef MRG_ADB /* adb_poweroff is available only when - * the MRG_ADB method isn't used. */ - adb_poweroff(); /* Shut down machines whose power functions - * are accessed via modified ADB calls. */ + if (howto & RB_POWERDOWN) { + printf("\nAttempting to power down...\n"); + via_shutdown(); +#ifndef MRG_ADB + /* + * adb_poweroff() is available only when + * the MRG_ADB method isn't used. + * + * Shut down machines whose power functions + * are accessed via modified ADB calls. + */ + adb_poweroff(); #endif - printf("You may turn the machine off,"); - printf(" or hit any key to reboot.\n"); + } + printf("\nThe operating system has halted.\n"); + printf("Please press any key to reboot.\n\n"); (void)cngetc(); } |