kboot: Create quit command

Create a command that just quits out of the loader. Useful for
debugging.

Sponsored by:		Netflix
Reviewed by:		tsoome
Differential Revision:	https://reviews.freebsd.org/D50589
This commit is contained in:
Warner Losh
2025-05-30 08:15:04 -06:00
parent aeb446be4e
commit 1145891d07
+12
View File
@@ -655,3 +655,15 @@ command_fdt(int argc, char *argv[])
COMMAND_SET(fdt, "fdt", "flattened device tree handling", command_fdt);
#endif
/*
* Support quitting.
*/
static int
command_quit(int argc, char *argv[])
{
exit(0);
return (CMD_OK);
}
COMMAND_SET(quit, "quit", "exit the program", command_quit);