diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html
index b8d59a09bd..a701453d83 100644
--- a/Documentation/NuttShell.html
+++ b/Documentation/NuttShell.html
@@ -8,7 +8,7 @@
NuttShell (NSH)
- Last Updated: July 18, 2013
+ Last Updated: October 5, 2013
|
@@ -89,283 +89,295 @@
|
- 2.2 Base64 Decode (base64dec)
+ 2.2 Add a Routing Table Entry (addroute)
|
|
- 2.3 Base64 Encode (base64enc)
+ 2.3 Base64 Decode (base64dec)
|
|
- 2.4 Concatenate Files (cat)
+ 2.4 Base64 Encode (base64enc)
|
|
- 2.5 Change Current Working Directory (cd)
+ 2.5 Concatenate Files (cat)
|
|
- 2.6 Compare Files (cmp)
+ 2.6 Change Current Working Directory (cd)
|
|
- 2.7 Copy Files (cp)
+ 2.7 Compare Files (cmp)
|
|
- 2.8 Show or set the date and time (date)
+ 2.8 Copy Files (cp)
|
|
- 2.9 Copy and Convert Files (dd)
+ 2.9 Show or set the date and time (date)
|
|
- 2.10 Show volume status (df)
+ 2.10 Copy and Convert Files (dd)
|
|
- 2.11 Echo Strings and Variables (echo)
+ 2.11 Delete a Routing Table Entry (delroute)
|
|
- 2.12 Execute User Code (exec)
+ 2.12 Show volume status (df)
|
|
- 2.13 Exit NSH (exit)
+ 2.13 Echo Strings and Variables (echo)
|
|
- 2.14 Show Memory Manager Status (free)
+ 2.14 Execute User Code (exec)
|
|
- 2.15 Get File Via TFTP (get)
+ 2.15 Exit NSH (exit)
|
|
- 2.16 Show Usage Command Usage (help)
+ 2.16 Show Memory Manager Status (free)
|
|
- 2.17 Hexadecimal Dump of File or Device (hexdump)
+ 2.17 Get File Via TFTP (get)
|
|
- 2.18 Manage Network Configuration (ifconfig)
+ 2.18 Show Usage Command Usage (help)
|
|
- 2.19 Take a network down (ifdown)
+ 2.19 Hexadecimal Dump of File or Device (hexdump)
|
|
- 2.20 Bring a network up (ifup)
+ 2.20 Manage Network Configuration (ifconfig)
|
|
- 2.21 Send a signal to a task (kill)
+ 2.21 Take a network down (ifdown)
|
|
- 2.22 Setup/teardown the Loop Device (losetup)
+ 2.22 Bring a network up (ifup)
|
|
- 2.23 List Directory Contents (ls)
+ 2.23 Send a signal to a task (kill)
|
|
- 2.24 Calculate MD5 (md5)
+ 2.24 Setup/teardown the Loop Device (losetup)
|
|
- 2.25 Access Memory (mb, mh, and mw)
+ 2.25 List Directory Contents (ls)
|
|
- 2.26 Show Current Tasks and Threads (ps)
+ 2.26 Calculate MD5 (md5)
|
|
- 2.27 Create a Directory (mkdir)
+ 2.27 Access Memory (mb, mh, and mw)
|
|
- 2.28 Create a FAT Filesystem (mkfatfs)
+ 2.28 Show Current Tasks and Threads (ps)
|
|
- 2.29 Create a FIFO (mkfifo)
+ 2.29 Create a Directory (mkdir)
|
|
- 2.30 Create a RAMDISK (mkrd)
+ 2.30 Create a FAT Filesystem (mkfatfs)
|
|
- 2.31 Mount a File System (mount)
+ 2.31 Create a FIFO (mkfifo)
|
|
- 2.32 Rename a File (mv)
+ 2.32 Create a RAMDISK (mkrd)
|
|
- 2.33 Mount an NFS file system (nfsmount)
+ 2.33 Mount a File System (mount)
|
|
- 2.34 Check Network Peer (ping)
+ 2.34 Rename a File (mv)
|
|
- 2.35 Send File Via TFTP (put)
+ 2.35 Mount an NFS file system (nfsmount)
|
|
- 2.36 Show Current Working Directory (pwd)
+ 2.36 Check Network Peer (ping)
|
|
- 2.37 Remove a File (rm)
+ 2.37 Send File Via TFTP (put)
|
|
- 2.38 Remove a Directory (rmdir)
+ 2.38 Show Current Working Directory (pwd)
|
|
- 2.39 Set an Environment Variable (set)
+ 2.39 Remove a File (rm)
|
|
- 2.40 Execute an NSH Script (sh)
+ 2.40 Remove a Directory (rmdir)
|
|
- 2.41 Wait for Seconds (sleep)
+ 2.41 Set an Environment Variable (set)
|
|
- 2.42 Unmount a File System (umount)
+ 2.42 Execute an NSH Script (sh)
|
|
- 2.43 Unset an Environment Variable (unset)
+ 2.43 Wait for Seconds (sleep)
|
|
- 2.44 URL Decode (urldecode)
+ 2.44 Unmount a File System (umount)
|
|
- 2.45 URL Encode (urlencode)
+ 2.45 Unset an Environment Variable (unset)
|
|
- 2.46 Wait for Microseconds (usleep)
+ 2.46 URL Decode (urldecode)
|
|
- 2.47 Get File Via HTTP (wget)
+ 2.47 URL Encode (urlencode)
|
|
- 2.48 Hexadecimal Dump of Memory (xd)
+ 2.48 Wait for Microseconds (usleep)
+ |
+
+
+
|
+
+ 2.49 Get File Via HTTP (wget)
+ |
+
+
+
|
+
+ 2.50 Hexadecimal Dump of Memory (xd)
|
@@ -804,7 +816,31 @@ test <expression>
+
+Command Syntax:
+
+addroute <target> <netmask> <router>
+
+
+ Synopsis.
+ This command adds an entry in the routing table.
+ The new entry will map the IP address of a router on a local network(<router>) to an external network characterized by the <target> IP address and a network mask <netmask>
+
+
+ Example:
+
+
+nsh> addroute 1.1.1.1 2.2.2.2 3.3.3.3
+
+
+
@@ -821,7 +857,7 @@ base64dec [-w] [-f] <string or filepath>
@@ -838,7 +874,7 @@ base64enc [-w] [-f] <string or filepath>
@@ -856,7 +892,7 @@ cat <path>
[<path>
[<path>
- 2.5 Change Current Working Directory (cd)
+ 2.6 Change Current Working Directory (cd)
|
@@ -898,7 +934,7 @@ cd [<dir-path>|-|~|..]
@@ -915,7 +951,7 @@ cmp <path1> <path2>
@@ -933,7 +969,7 @@ cp <source-path> <dest-path>
@@ -960,7 +996,7 @@ data -s "Sep 1 11:30:00 2011"
@@ -1018,10 +1054,34 @@ nsh> dd if=/dev/ram0 of=/dev/null
+
+Command Syntax:
+
+delroute <target> <netmask>
+
+
+ Synopsis.
+ The entry removed will be the first entry in the routing table that matches
+ the external network characterized by the <target> IP address and the network mask <netmask>
+
+ Example:
+
+
+nsh> delroute 1.1.1.1 2.2.2.2
+
+
+
+
Command Syntax:
df [-h]
@@ -1049,7 +1109,7 @@ nsh>
@@ -1067,7 +1127,7 @@ echo [<string|$name> [<string|$name>...]]
@@ -1086,7 +1146,7 @@ exec <hex-address>
@@ -1105,7 +1165,7 @@ exit
@@ -1147,7 +1207,7 @@ nsh>
@@ -1182,7 +1242,7 @@ get [-b|-n] [-f <local-path>] -h <ip-address> <remote-path>
@@ -1214,7 +1274,7 @@ help [-v] [<cmd>]
@@ -1238,7 +1298,7 @@ hexdump <file or device>
@@ -1292,7 +1352,7 @@ ifconfig nic_name ip_address
@@ -1315,7 +1375,7 @@ ifdown eth0
@@ -1338,7 +1398,7 @@ ifup eth0
@@ -1379,7 +1439,7 @@ nsh>
@@ -1432,7 +1492,7 @@ losetup d <dev-path>
@@ -1469,7 +1529,7 @@ ls [-lRs] <dir-path>
@@ -1486,7 +1546,7 @@ md5 [-f] <string or filepath>
@@ -1540,7 +1600,7 @@ nsh>
@@ -1566,7 +1626,7 @@ nsh>
@@ -1601,7 +1661,7 @@ nsh>
@@ -1621,7 +1681,7 @@ mkfatfs <path>
@@ -1659,7 +1719,7 @@ nsh>
@@ -1710,7 +1770,7 @@ nsh>
@@ -1789,7 +1849,7 @@ nsh> mount
@@ -1807,7 +1867,7 @@ mv <old-path> <new-path>
@@ -1826,7 +1886,7 @@ nfsmount <server-address> <mount-point> <remote-path>
@@ -1859,7 +1919,7 @@ nsh>
@@ -1894,7 +1954,7 @@ put [-b|-n] [-f <remote-path>] -h <ip-address> <local-path>
@@ -1924,7 +1984,7 @@ nsh>
@@ -1958,7 +2018,7 @@ nsh>
@@ -1993,7 +2053,7 @@ nsh>
@@ -2019,7 +2079,7 @@ nsh>
@@ -2037,7 +2097,7 @@ sh <script-path>
@@ -2054,7 +2114,7 @@ sleep <sec>
@@ -2084,7 +2144,7 @@ nsh>
@@ -2110,7 +2170,7 @@ nsh>
@@ -2127,7 +2187,7 @@ urldecode [-f] <string or filepath>
@@ -2144,7 +2204,7 @@ urlencode [-f] <string or filepath>
@@ -2161,7 +2221,7 @@ usleep <usec>
@@ -2188,7 +2248,7 @@ wget [-o <local-path>] <url>
@@ -2256,6 +2316,11 @@ nsh>
!CONFIG_NSH_DISABLESCRIPT |
CONFIG_NSH_DISABLE_TEST |
+
+ addroute |
+ CONFIG_NET && CONFIG_NET_ROUTE |
+ CONFIG_NSH_DISABLE_ADDROUTE |
+
base64dec |
CONFIG_NETUTILS_CODECS && CONFIG_CODECS_BASE64 |
@@ -2296,6 +2361,11 @@ nsh>
CONFIG_NFILE_DESCRIPTORS > 0 |
CONFIG_NSH_DISABLE_DD |
+
+ delroute |
+ CONFIG_NET && CONFIG_NET_ROUTE |
+ CONFIG_NSH_DISABLE_DELROUTE |
+
df |
!CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_READABLE 3 |
@@ -3777,6 +3847,7 @@ mount -t vfat /dev/ram1 /tmp
$?
[
Adding NSH commands
+ addroute
appconfig
Application configuration file (appconfig
)
Autogenerated header files
@@ -3850,12 +3921,13 @@ mount -t vfat /dev/ram1 /tmp
Customizing NSH initialization
date
dd
+ delroute
df
echo
Environment Variables
- /etc/init.d/rcS
+ /etc/init.d/rcS
exec
exec_builtin()
exit
|