From 026caf9e54b42da5d7b0571f39c9e5b06c3d677d Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 3 Aug 2012 23:47:32 +0000 Subject: [PATCH] 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 --- Documentation/NuttShell.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index 2f7bb7974b9..86014074f48 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: June 15, 2012

+

Last Updated: August 3, 2012

@@ -1439,8 +1439,12 @@ mount -t <fstype> <block-device> <dir-path>

Synopsis. - The 'm ount' command mounts a file system in the NuttX psuedo - filesystem. 'mount' performs a three way associating, binding: + The mount command performs one of two different operations. + If no paramters are provided on the command line after the mount command, then the mount command will enumerate all of the current mountpoints on the console. +

+

+ If the mount parameters are provied on the command after the mount command, then the mount command will mount a file system in the NuttX psuedo-file system. + mount' performs a three way association, binding:

  1. File system. @@ -1469,7 +1473,8 @@ mount -t <fstype> <block-device> <dir-path> pseudo filesystem, it may be access in the same way as other objects in thefile system.

    -

    Example

    +

    Examples:

    +

    Using mount to mount a file system:

       nsh> ls -l /dev
       /dev:
      @@ -1491,6 +1496,13 @@ nsh> cat /mnt/fs/testdir/example.txt
       This is a test
       nsh>
       
    +

    Using mount to enumerate mounts:

    +
      +nsh> mount
      +  /etc type romfs
      +  /mnt/fs type vfat
      +  /tmp type vfat
      +