summaryrefslogtreecommitdiff
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2000-10-29 16:59:32 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2000-10-29 16:59:32 +0000
commitafe1083b54c2360aff124cae142f52833cc6d1ec (patch)
treec0bb69161f489a78e602d347177aec5790735aa2 /sys/dev/syscons
parentf1206d04c8e293e8a0c5ed7190fe6fbd0b16d937 (diff)
Notes
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/syscons.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 0d60d321e8dc..8be79b7cb7fb 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -3101,7 +3101,19 @@ next_code:
case RBT:
#ifndef SC_DISABLE_REBOOT
- shutdown_nice();
+ shutdown_nice(0);
+#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;