summaryrefslogtreecommitdiff
path: root/apps/nshlib/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-08-03 23:47:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-08-03 23:47:32 +0000
commita98c9af060ce31895336fd3170e5efc961f1b298 (patch)
treee591f268857f6ec0f27b064bdb0b438ae8515a29 /apps/nshlib/README.txt
parent16d6e830b07e83e2e791c7d7bc6c712af28541e1 (diff)
downloadnuttx-a98c9af060ce31895336fd3170e5efc961f1b298.tar.gz
nuttx-a98c9af060ce31895336fd3170e5efc961f1b298.tar.bz2
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 'apps/nshlib/README.txt')
-rw-r--r--apps/nshlib/README.txt22
1 files changed, 17 insertions, 5 deletions
diff --git a/apps/nshlib/README.txt b/apps/nshlib/README.txt
index 83f2b007b..45d14f30d 100644
--- a/apps/nshlib/README.txt
+++ b/apps/nshlib/README.txt
@@ -553,10 +553,17 @@ o mkrd [-m <minor>] [-s <sector-size>] <nsectors>
/tmp:
nsh>
-o mount -t <fstype> <block-device> <dir-path>
+o mount [-t <fstype> <block-device> <dir-path>]
- The 'mount' 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:
File system. The '-t <fstype>' option identifies the type of
file system that has been formatted on the <block-device>. As
@@ -579,8 +586,8 @@ o mount -t <fstype> <block-device> <dir-path>
system, it may be access in the same way as other objects in the
file system.
- Example:
- ^^^^^^^^
+ Examples:
+ ^^^^^^^^^
nsh> ls -l /dev
/dev:
@@ -602,6 +609,11 @@ o mount -t <fstype> <block-device> <dir-path>
This is a test
nsh>
+ nsh> mount
+ /etc type romfs
+ /tmp type vfat
+ /mnt/fs type vfat
+
o mv <old-path> <new-path>
Rename the file object at <old-path> to <new-path>. Both paths must