[PATCH 20/34] doc: add documentation for 'exec' command

Robert Schwebel r.schwebel at pengutronix.de
Wed Dec 15 06:51:34 EST 2010


Signed-off-by: Robert Schwebel <r.schwebel at pengutronix.de>
---
 Documentation/commands.dox |    2 +-
 commands/exec.c            |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Documentation/commands.dox b/Documentation/commands.dox
index 087ab4e..023a559 100644
--- a/Documentation/commands.dox
+++ b/Documentation/commands.dox
@@ -40,7 +40,7 @@ available in @a Barebox:
 @li @subpage edit_command
 @li @subpage erase_command
 @li @subpage ethact
- at li @subpage exec
+ at li @subpage exec_command
 @li @subpage exit
 @li @subpage export_command
 @li @subpage false_command
diff --git a/commands/exec.c b/commands/exec.c
index 5f093b7..7f655b6 100644
--- a/commands/exec.c
+++ b/commands/exec.c
@@ -53,6 +53,11 @@ out:
 	return 1;
 }
 
+BAREBOX_CMD_HELP_START(exec)
+BAREBOX_CMD_HELP_USAGE("exec SCRIPT\n")
+BAREBOX_CMD_HELP_SHORT("Execute a script.\n")
+BAREBOX_CMD_HELP_END
+
 BAREBOX_CMD_START(exec)
 	.cmd		= do_exec,
 	.usage		= "execute a script",
-- 
1.7.2.3




More information about the barebox mailing list