diff options
author | 2020-10-26 18:53:20 +0000 | |
---|---|---|
committer | 2020-10-26 18:53:20 +0000 | |
commit | a108f33e8231b1efd7d5ab09d85befa50d0daef2 (patch) | |
tree | e7d854783ef77ca823faccb845faa1b802cd0792 | |
parent | Switch the pmap and PDP pools to IPL_VM, drop the PR_WAITOK flag from the (diff) | |
download | wireguard-openbsd-a108f33e8231b1efd7d5ab09d85befa50d0daef2.tar.xz wireguard-openbsd-a108f33e8231b1efd7d5ab09d85befa50d0daef2.zip |
add a top-level "reboot" command, for people who keep forgetting "boot reboot"
ok kn
-rw-r--r-- | share/man/man4/ddb.4 | 8 | ||||
-rw-r--r-- | sys/ddb/db_command.c | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/share/man/man4/ddb.4 b/share/man/man4/ddb.4 index 7177668a177..27cca031558 100644 --- a/share/man/man4/ddb.4 +++ b/share/man/man4/ddb.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ddb.4,v 1.98 2020/06/17 10:55:24 sthen Exp $ +.\" $OpenBSD: ddb.4,v 1.99 2020/10/26 18:53:20 deraadt Exp $ .\" $NetBSD: ddb.4,v 1.5 1994/11/30 16:22:09 jtc Exp $ .\" .\" Mach Operating System @@ -25,7 +25,7 @@ .\" any improvements or extensions that they make and grant Carnegie Mellon .\" the rights to redistribute these changes. .\" -.Dd $Mdocdate: June 17 2020 $ +.Dd $Mdocdate: October 26 2020 $ .Dt DDB 4 .Os .Sh NAME @@ -605,6 +605,10 @@ address is set to the address where .Ar value is found, or just after where the search area finishes. .\" -------------------- +.It Ic reboot +Shortcut for +.Ic boot reboot +.\" -------------------- .It Ic show Ar what Displays various things, depending on .Ar what : 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 }, |