diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2000-09-11 20:37:42 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2000-09-11 20:37:42 +0000 |
commit | eeb5416b4738f452cac300d13f704c4b03d5d370 (patch) | |
tree | ccf2ead9bbeec7dddfd835afb860d0205f0f8dc9 /sys/pc98/pc98/syscons.c | |
parent | c35d103e0f7e019bf6237cd8451bd0a69960b339 (diff) | |
download | FreeBSD-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/pc98/syscons.c')
-rw-r--r-- | sys/pc98/pc98/syscons.c | 12 |
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); |