loader: Add halt as an alias to poweroff machine

Add halt as an alias to also poweroff a machine from the loader prompt,
this is consistent with ddb.

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51132
This commit is contained in:
Tom Jones
2025-07-04 07:37:19 +01:00
parent 228b43c258
commit d72c74a6c5
+1
View File
@@ -1547,6 +1547,7 @@ command_seed_entropy(int argc, char *argv[])
}
COMMAND_SET(poweroff, "poweroff", "power off the system", command_poweroff);
COMMAND_SET(halt, "halt", "power off the system", command_poweroff);
static int
command_poweroff(int argc __unused, char *argv[] __unused)