summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2000-09-11 20:37:42 +0000
committerdwmalone <dwmalone@FreeBSD.org>2000-09-11 20:37:42 +0000
commiteeb5416b4738f452cac300d13f704c4b03d5d370 (patch)
treeccf2ead9bbeec7dddfd835afb860d0205f0f8dc9 /sys/pc98
parentc35d103e0f7e019bf6237cd8451bd0a69960b339 (diff)
downloadFreeBSD-src-eeb5416b4738f452cac300d13f704c4b03d5d370.zip
FreeBSD-src-eeb5416b4738f452cac300d13f704c4b03d5d370.tar.gz
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
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/pc98/syscons.c12
1 files changed, 12 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud