aboutsummaryrefslogtreecommitdiff
path: root/stand/common/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'stand/common/commands.c')
-rw-r--r--stand/common/commands.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/stand/common/commands.c b/stand/common/commands.c
index 0d21ed44c681..e6e4fd005f72 100644
--- a/stand/common/commands.c
+++ b/stand/common/commands.c
@@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <stand.h>
#include <string.h>
@@ -123,7 +120,6 @@ help_emitsummary(char *topic, char *subtopic, char *desc)
return (pager_output("\n"));
}
-
static int
command_help(int argc, char *argv[])
{
@@ -132,7 +128,8 @@ command_help(int argc, char *argv[])
char *topic, *subtopic, *t, *s, *d;
/* page the help text from our load path */
- snprintf(buf, sizeof(buf), "%s/boot/loader.help", getenv("loaddev"));
+ snprintf(buf, sizeof(buf), "%s/boot/%s", getenv("loaddev"),
+ HELP_FILENAME);
if ((hfd = open(buf, O_RDONLY)) < 0) {
printf("Verbose help not available, "
"use '?' to list commands\n");
@@ -576,3 +573,12 @@ command_readtest(int argc, char *argv[])
}
COMMAND_SET(readtest, "readtest", "Time a file read", command_readtest);
+
+static int
+command_quit(int argc, char *argv[])
+{
+ exit(0);
+ return (CMD_OK);
+}
+
+COMMAND_SET(quit, "quit", "exit the loader", command_quit);