From cbf247e11bed91359f5626b8b07e88bca5908b89 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 11 Aug 2017 15:56:33 -0600 Subject: [PATCH] Update NSH documentation. --- Documentation/NuttShell.html | 98 ++++++++++++++++++++++++------------ 1 file changed, 65 insertions(+), 33 deletions(-) diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index 4aeb266544..5e66ce4ae2 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: August 10, 2017

+

Last Updated: August 11, 2017

@@ -407,97 +407,103 @@
- 2.54 Set an Environment Variable (set) + 2.54 Show routing table (route)
- 2.55 Execute an NSH Script (sh) + 2.55 Set an Environment Variable (set)
- 2.56 Shut the system down (shutdown) + 2.56 Execute an NSH Script (sh)
- 2.57 Wait for Seconds (sleep) + 2.57 Shut the system down (shutdown)
- 2.58 Start the Telnet Daemon (telnetd) + 2.58 Wait for Seconds (sleep)
- 2.59 Time execution of another command (time) + 2.59 Start the Telnet Daemon (telnetd)
- 2.60 Unmount a File System (umount) + 2.60 Time execution of another command (time)
- 2.61 Print system information (uname) + 2.61 Unmount a File System (umount)
- 2.62 Unset an Environment Variable (unset) + 2.62 Print system information (uname)
- 2.63 URL Decode (urldecode) + 2.63 Unset an Environment Variable (unset)
- 2.64 URL Encode (urlencode) + 2.64 URL Decode (urldecode)
- 2.65 Add a New User (useradd) + 2.65 URL Encode (urlencode)
- 2.66 Delete a user (userdel) + 2.66 Add a New User (useradd)
- 2.67 Wait for Microseconds (usleep) + 2.67 Delete a user (userdel)
- 2.68 Get File Via HTTP (wget) + 2.68 Wait for Microseconds (usleep)
- 2.69 Hexadecimal Dump of Memory (xd) + 2.69 Get File Via HTTP (wget) + + + +
+ + 2.70 Hexadecimal Dump of Memory (xd) @@ -2766,7 +2772,27 @@ nsh> + +
-

2.54 Set an Environment Variable (set)

+

2.54 Show routing table (route)

+
+ +

Command Syntax:

+ +

+ Synopsis. + Show the contents of routing table for IPv4 or IPv6. +

+

+ If only IPv4 or IPv6 is enabled, then the argument is optional but, if provided, must match the enabled internet protocol version. +

+ + + +
+

2.55 Set an Environment Variable (set)

@@ -2835,7 +2861,7 @@ nsh>
-

2.55 Execute an NSH Script (sh)

+

2.56 Execute an NSH Script (sh)

@@ -2853,7 +2879,7 @@ sh <script-path>
-

2.56 Shut the system down (shutdown)

+

2.57 Shut the system down (shutdown)

@@ -2874,7 +2900,7 @@ shutdown [--reboot]
-

2.57 Wait for Seconds (sleep)

+

2.58 Wait for Seconds (sleep)

@@ -2891,7 +2917,7 @@ sleep <sec>
-

2.58 Time Start the Telnet Daemon (telnetd)

+

2.59 Time Start the Telnet Daemon (telnetd)

@@ -2917,7 +2943,7 @@ telnetd
-

2.59 Time execution of another command (time)

+

2.60 Time execution of another command (time)

@@ -2975,7 +3001,7 @@ nsh>
-

2.60 Unmount a File System (umount)

+

2.61 Unmount a File System (umount)

@@ -3005,7 +3031,7 @@ nsh>
-

2.61 Print system information (uname)

+

2.62 Print system information (uname)

@@ -3072,7 +3098,7 @@ uname [-a | -imnoprsv]
-

2.62 Unset an Environment Variable (unset)

+

2.63 Unset an Environment Variable (unset)

@@ -3098,7 +3124,7 @@ nsh>
-

2.63 URL Decode (urldecode)

+

2.64 URL Decode (urldecode)

@@ -3115,7 +3141,7 @@ urldecode [-f] <string or filepath>
-

2.64 URL Encode (urlencode)

+

2.65 URL Encode (urlencode)

@@ -3132,7 +3158,7 @@ urlencode [-f] <string or filepath>
-

2.65 Add a New User (useradd)

+

2.66 Add a New User (useradd)

@@ -3149,7 +3175,7 @@ useradd <username> <password>
-

2.66 Delete a user (userdel)

+

2.67 Delete a user (userdel)

@@ -3166,7 +3192,7 @@ userdel <username>
-

2.67 Wait for Microseconds (usleep)

+

2.68 Wait for Microseconds (usleep)

@@ -3183,7 +3209,7 @@ usleep <usec>
-

2.68 Get File Via HTTP (wget)

+

2.69 Get File Via HTTP (wget)

@@ -3210,7 +3236,7 @@ wget [-o <local-path>] <url>
-

2.69 Hexadecimal Dump of Memory (xd)

+

2.70 Hexadecimal Dump of Memory (xd)

@@ -3551,6 +3577,11 @@ nsh> CONFIG_MODULE CONFIG_NSH_DISABLE_MODCMDS + + route + CONFIG_FS_PROCFS && CONFIG_FS_PROCFS_EXCLUDE_NET && !CONFIG_FS_PROCFS_EXCLUDE_ROUTE && CONFIG_NET_ROUTE && !CONFIG_NSH_DISABLE_ROUTE && (CONFIG_NET_IPv4 || CONFIG_NET_IPv6) + CONFIG_NSH_DISABLE_ROUTE + set !CONFIG_DISABLE_ENVIRON @@ -5467,6 +5498,7 @@ xxd -i romfs_img >nsh_romfsimg.h
  • rmmod
  • ROMFS, Modifying the ROMFS image
  • ROMFS, Password File
  • +
  • route
  • set
  • sh
  • shutdown