diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-03 23:47:32 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-03 23:47:32 +0000 |
commit | a98c9af060ce31895336fd3170e5efc961f1b298 (patch) | |
tree | e591f268857f6ec0f27b064bdb0b438ae8515a29 /nuttx/Documentation/NuttShell.html | |
parent | 16d6e830b07e83e2e791c7d7bc6c712af28541e1 (diff) | |
download | px4-nuttx-a98c9af060ce31895336fd3170e5efc961f1b298.tar.gz px4-nuttx-a98c9af060ce31895336fd3170e5efc961f1b298.tar.bz2 px4-nuttx-a98c9af060ce31895336fd3170e5efc961f1b298.zip |
Extend the NSH mount command so that it will enumerate mountpoints if no arguments are provided
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5006 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/Documentation/NuttShell.html')
-rw-r--r-- | nuttx/Documentation/NuttShell.html | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/nuttx/Documentation/NuttShell.html b/nuttx/Documentation/NuttShell.html index 2f7bb7974..86014074f 100644 --- a/nuttx/Documentation/NuttShell.html +++ b/nuttx/Documentation/NuttShell.html @@ -8,7 +8,7 @@ <tr align="center" bgcolor="#e4e4e4"> <td> <h1><big><font color="#3c34ec"><i>NuttShell (NSH)</i></font></big></h1> - <p>Last Updated: June 15, 2012</p> + <p>Last Updated: August 3, 2012</p> </td> </tr> </table> @@ -1439,8 +1439,12 @@ mount -t <fstype> <block-device> <code><dir-path></code> </pre></ul> <p> <b>Synopsis</b>. - The 'm ount' command mounts a file system in the NuttX psuedo - filesystem. 'mount' performs a three way associating, binding: + The <code>mount</code> command performs one of two different operations. + If no paramters are provided on the command line after the <code>mount</code> command, then the <code>mount</code> command will enumerate all of the current mountpoints on the console. +</p> +<p> + If the mount parameters are provied on the command after the <code>mount</code> command, then the <code>mount</code> command will mount a file system in the NuttX psuedo-file system. + <code>mount</code>' performs a three way association, binding: </p> <ol> <li><b>File system.</b> @@ -1469,7 +1473,8 @@ mount -t <fstype> <block-device> <code><dir-path></code> <a href="NuttxUserGuide.html#FileSystemOverview"><i>pseudo</i> filesystem</a>, it may be access in the same way as other objects in thefile system. </p> -<p><b>Example</b></p> +<p><b>Examples</b>:</p> +<p>Using <code>mount</code> to mount a file system:</p> <ul><pre> nsh> ls -l /dev /dev: @@ -1491,6 +1496,13 @@ nsh> cat /mnt/fs/testdir/example.txt This is a test nsh> </pre></ul> +<p>Using <code>mount</code> to enumerate mounts:</p> +<ul><pre> +nsh> mount + /etc type romfs + /mnt/fs type vfat + /tmp type vfat +</pre></ul> <table width ="100%"> <tr bgcolor="#e4e4e4"> |