summaryrefslogtreecommitdiff
path: root/sys/ddb
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2020-10-26 18:53:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2020-10-26 18:53:21 +0000
commit693da01715c98a846959e542e40c07542d863b54 (patch)
tree65d985217a4063f446b94bea21cdda3ea5f1fda3 /sys/ddb
parentf660f390f62990e716e54b7e3699dd801cd0a1ab (diff)
add a top-level "reboot" command, for people who keep forgetting "boot reboot"
ok kn
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 685e46cf4bd..04356436b5c 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_command.c,v 1.89 2020/10/15 03:14:00 deraadt Exp $ */
+/* $OpenBSD: db_command.c,v 1.90 2020/10/26 18:53:20 deraadt Exp $ */
/* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */
/*
@@ -616,6 +616,7 @@ struct db_command db_command_table[] = {
{ "call", db_fncall, CS_OWN, NULL },
{ "ps", db_show_all_procs, 0, NULL },
{ "callout", db_show_callout, 0, NULL },
+ { "reboot", db_boot_reboot_cmd, 0, NULL },
{ "show", NULL, 0, db_show_cmds },
{ "boot", NULL, 0, db_boot_cmds },
{ "help", db_help_cmd, 0, NULL },