From 4b07af6730d2811363f158f5175138116038f7b9 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 5 Jul 2007 18:02:13 +0200 Subject: svn_rev_643 structure cleanup --- commands/exec.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 commands/exec.c (limited to 'commands/exec.c') diff --git a/commands/exec.c b/commands/exec.c new file mode 100644 index 0000000000..2cba507519 --- /dev/null +++ b/commands/exec.c @@ -0,0 +1,44 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef CONFIG_HUSH_PARSER +#include +#endif + +static int do_exec(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) +{ + int i; + char *script; + + if (argc < 2) { + printf ("Usage:\n%s\n", cmdtp->usage); + return 1; + } + + for (i=1; i