diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-15 15:36:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-15 15:36:16 +0000 |
commit | a53de1f10c52bc787111ef7091f909f9ccdd53ac (patch) | |
tree | 1a7f22450f48ca990bd4b1bc0109c563bcfa21e5 /nuttx/examples/nsh/nsh_main.c | |
parent | eee89cef747135ccc8267d6a92f623ee85b6c843 (diff) | |
download | px4-nuttx-a53de1f10c52bc787111ef7091f909f9ccdd53ac.tar.gz px4-nuttx-a53de1f10c52bc787111ef7091f909f9ccdd53ac.tar.bz2 px4-nuttx-a53de1f10c52bc787111ef7091f909f9ccdd53ac.zip |
Add dd command to NSH
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1241 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh_main.c')
-rw-r--r-- | nuttx/examples/nsh/nsh_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/examples/nsh/nsh_main.c b/nuttx/examples/nsh/nsh_main.c index b333cbc54..14b1afb55 100644 --- a/nuttx/examples/nsh/nsh_main.c +++ b/nuttx/examples/nsh/nsh_main.c @@ -151,6 +151,12 @@ static const struct cmdmap_s g_cmdmap[] = # endif #endif +#if CONFIG_NFILE_DESCRIPTORS > 0 +# ifndef CONFIG_EXAMPLES_NSH_DISABLE_LS + { "dd", cmd_dd, 3, 6, "if=<infile> of=<outfile> [bs=<sectsize>] [count=<sectors>] [skip=<sectors>]" }, +# endif +#endif + #ifndef CONFIG_EXAMPLES_NSH_DISABLE_ECHO # ifndef CONFIG_DISABLE_ENVIRON { "echo", cmd_echo, 0, NSH_MAX_ARGUMENTS, "[<string|$name> [<string|$name>...]]" }, |