diff options
Diffstat (limited to 'sys/dev/syscons/syscons.c')
-rw-r--r-- | sys/dev/syscons/syscons.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 49b8f6c..43b7724 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -3102,6 +3102,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); |