From eeb5416b4738f452cac300d13f704c4b03d5d370 Mon Sep 17 00:00:00 2001 From: dwmalone Date: Mon, 11 Sep 2000 20:37:42 +0000 Subject: Add the ability to define a "shutdown" and "shutdown and poweroff" key to syscons. I have a man page to follow describing the format of the kbdmap file. PR: 19273 Reviewed by: sheldonh --- sys/pc98/pc98/syscons.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys/pc98') diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c index 6b243ad..65a7595 100644 --- a/sys/pc98/pc98/syscons.c +++ b/sys/pc98/pc98/syscons.c @@ -3121,6 +3121,18 @@ next_code: #endif break; + case HALT: +#ifndef SC_DISABLE_REBOOT + shutdown_nice(RB_HALT); +#endif + break; + + case PDWN: +#ifndef SC_DISABLE_REBOOT + shutdown_nice(RB_HALT|RB_POWEROFF); +#endif + break; + #if NAPM > 0 case SUSP: apm_suspend(PMST_SUSPEND); -- cgit v1.1