From f6de06f9f9959027ee598c0177f676aa4f2ca627 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 4 Nov 2012 18:54:04 +0000 Subject: Add interfaces flags, extend ifconfig, add ifup and ifdown commands (Darcy Gong git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5308 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/Documentation/NuttShell.html | 199 +++++++++++++++++++++++++------------ 1 file changed, 136 insertions(+), 63 deletions(-) (limited to 'nuttx/Documentation/NuttShell.html') diff --git a/nuttx/Documentation/NuttShell.html b/nuttx/Documentation/NuttShell.html index f8ef41fb9..31546a100 100644 --- a/nuttx/Documentation/NuttShell.html +++ b/nuttx/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: October 31, 2012

+

Last Updated: November 4, 2012

@@ -173,175 +173,187 @@
- 2.16 Show Network Configuration (ifconfig) + 2.16 Manage Network Configuration (ifconfig)
- 2.17 Send a signal to a task (kill) + 2.17 Take a network down (ifdown)
- 2.18 Setup/teardown the Loop Device (losetup) + 2.18 Bring a network up (ifup)
- 2.19 List Directory Contents (ls) + 2.19 Send a signal to a task (kill)
- 2.20 Calculate MD5 (md5) + 2.20 Setup/teardown the Loop Device (losetup)
- 2.21 Access Memory (mb, mh, and mw) + 2.21 List Directory Contents (ls)
- 2.22 Show Current Tasks and Threads (ps) + 2.22 Calculate MD5 (md5)
- 2.23 Create a Directory (mkdir) + 2.23 Access Memory (mb, mh, and mw)
- 2.24 Create a FAT Filesystem (mkfatfs) + 2.24 Show Current Tasks and Threads (ps)
- 2.25 Create a FIFO (mkfifo) + 2.25 Create a Directory (mkdir)
- 2.26 Create a RAMDISK (mkrd) + 2.26 Create a FAT Filesystem (mkfatfs)
- 2.27 Mount a File System (mount) + 2.27 Create a FIFO (mkfifo)
- 2.28 Rename a File (mv) + 2.28 Create a RAMDISK (mkrd)
- 2.29 Mount an NFS file system (nfsmount) + 2.29 Mount a File System (mount)
- 2.30 Check Network Peer (ping) + 2.30 Rename a File (mv)
- 2.31 Send File Via TFTP (put) + 2.31 Mount an NFS file system (nfsmount)
- 2.32 Show Current Working Directory (pwd) + 2.32 Check Network Peer (ping)
- 2.33 Remove a File (rm) + 2.33 Send File Via TFTP (put)
- 2.34 Remove a Directory (rmdir) + 2.34 Show Current Working Directory (pwd)
- 2.35 Set an Environment Variable (set) + 2.35 Remove a File (rm)
- 2.36 Execute an NSH Script (sh) + 2.36 Remove a Directory (rmdir)
- 2.37 Wait for Seconds (sleep) + 2.37 Set an Environment Variable (set)
- 2.38 Unmount a File System (umount) + 2.38 Execute an NSH Script (sh)
- 2.39 Unset an Environment Variable (unset) + 2.39 Wait for Seconds (sleep)
- 2.40 URL Decode (urldecode) + 2.40 Unmount a File System (umount)
- 2.41 URL Encode (urlencode) + 2.41 Unset an Environment Variable (unset)
- 2.42 Wait for Microseconds (usleep) + 2.42 URL Decode (urldecode)
- 2.43 Get File Via HTTP (wget) + 2.43 URL Encode (urlencode)
- 2.44 Hexadecimal Dump (xd) + 2.44 Wait for Microseconds (usleep) + + + +
+ + 2.45 Get File Via HTTP (wget) + + + +
+ + 2.46 Hexadecimal Dump (xd) @@ -1170,18 +1182,18 @@ help [-v] [<cmd>]
-

2.16 Show Network Configuration (ifconfig)

+

2.16 Manage Network Configuration (ifconfig)

Command Syntax:

Synopsis. - Two forms of the ifconfigcommand are supported: + Multiple forms of the ifconfigcommand are supported:

  1. @@ -1214,14 +1226,63 @@ eth0 HWaddr 00:18:11:80:10:06

       ifconfig nic_name ip_address
      -
        +
      + +
    • + Other forms to be provided
+ +
-

2.17 Send a signal to a task (kill)

+

2.17 Take a network down (ifdown)

+
+ +

Command Syntax:

+ +

+ Synopsis. + Take down the interface identified by the name <nic-name>. +

+

+ Example: +

+ + + + + + +
+

2.18 Bring a network up (ifup)

+
+ +

Command Syntax:

+ +

+ Synopsis. + Bring up down the interface identified by the name <nic-name>. +

+

+ Example: +

+ + + + +
+

2.19 Send a signal to a task (kill)

@@ -1262,7 +1323,7 @@ nsh>
-

2.18 Setup/teardown the Loop Device (losetup)

+

2.20 Setup/teardown the Loop Device (losetup)

@@ -1315,7 +1376,7 @@ losetup d <dev-path>
-

2.19 List Directory Contents (ls)

+

2.21 List Directory Contents (ls)

@@ -1352,7 +1413,7 @@ ls [-lRs] <dir-path>
-

2.20 Calculate MD5 (md5)

+

2.22 Calculate MD5 (md5)

@@ -1369,7 +1430,7 @@ md5 [-f] <string or filepath>
-

2.21 Access Memory (mb, mh, and mw)

+

2.23 Access Memory (mb, mh, and mw)

@@ -1423,7 +1484,7 @@ nsh>
-

2.22 Show Current Tasks and Threads (ps)

+

2.24 Show Current Tasks and Threads (ps)

@@ -1449,7 +1510,7 @@ nsh>
-

2.23 Create a Directory (mkdir)

+

2.25 Create a Directory (mkdir)

@@ -1484,7 +1545,7 @@ nsh>
-

2.24 Create a FAT Filesystem (mkfatfs)

+

2.26 Create a FAT Filesystem (mkfatfs)

@@ -1504,7 +1565,7 @@ mkfatfs <path>
-

2.25 Create a FIFO (mkfifo)

+

2.27 Create a FIFO (mkfifo)

@@ -1542,7 +1603,7 @@ nsh>
-

2.26 Create a RAMDISK (mkrd)

+

2.28 Create a RAMDISK (mkrd)

@@ -1593,7 +1654,7 @@ nsh>
-

2.27 Mount a File System (mount)

+

2.29 Mount a File System (mount)

@@ -1672,7 +1733,7 @@ nsh> mount
-

2.28 Rename a File (mv)

+

2.30 Rename a File (mv)

@@ -1690,7 +1751,7 @@ mv <old-path> <new-path>
-

2.29 Mount an NFS file system (nfsmount)

+

2.31 Mount an NFS file system (nfsmount)

@@ -1709,7 +1770,7 @@ nfsmount <server-address> <mount-point> <remote-path>
-

2.30 Check Network Peer (ping)

+

2.32 Check Network Peer (ping)

@@ -1742,7 +1803,7 @@ nsh>
-

2.31 Send File Via TFTP (put)

+

2.33 Send File Via TFTP (put)

@@ -1777,7 +1838,7 @@ put [-b|-n] [-f <remote-path>] -h <ip-address> <local-path>
-

2.32 Show Current Working Directory (pwd)

+

2.34 Show Current Working Directory (pwd)

@@ -1807,7 +1868,7 @@ nsh>
-

2.33 Remove a File (rm)

+

2.35 Remove a File (rm)

@@ -1841,7 +1902,7 @@ nsh>
-

2.34 Remove a Directory (rmdir)

+

2.36 Remove a Directory (rmdir)

@@ -1876,7 +1937,7 @@ nsh>
-

2.35 Set an Environment Variable (set)

+

2.37 Set an Environment Variable (set)

@@ -1902,7 +1963,7 @@ nsh>
-

2.36 Execute an NSH Script (sh)

+

2.38 Execute an NSH Script (sh)

@@ -1920,7 +1981,7 @@ sh <script-path>
-

2.37 Wait for Seconds (sleep)

+

2.39 Wait for Seconds (sleep)

@@ -1937,7 +1998,7 @@ sleep <sec>
-

2.38 Unmount a File System (umount)

+

2.40 Unmount a File System (umount)

@@ -1967,7 +2028,7 @@ nsh>
-

2.39 Unset an Environment Variable (unset)

+

2.41 Unset an Environment Variable (unset)

@@ -1993,7 +2054,7 @@ nsh>
-

2.40 URL Decode (urldecode)

+

2.42 URL Decode (urldecode)

@@ -2010,7 +2071,7 @@ urldecode [-f] <string or filepath>
-

2.41 URL Encode (urlencode)

+

2.43 URL Encode (urlencode)

@@ -2027,7 +2088,7 @@ urlencode [-f] <string or filepath>
-

2.42 Wait for Microseconds (usleep)

+

2.44 Wait for Microseconds (usleep)

@@ -2044,7 +2105,7 @@ usleep <usec>
- 2.43 Get File Via HTTP (wget) + 2.45 Get File Via HTTP (wget)
@@ -2071,7 +2132,7 @@ wget [-o <local-path>] <url>
-

2.44 Hexadecimal dump (xd)

+

2.46 Hexadecimal dump (xd)

@@ -2215,6 +2276,16 @@ nsh> CONFIG_NET CONFIG_NSH_DISABLE_IFCONFIG + + ifdown + CONFIG_NET + CONFIG_NSH_DISABLE_IFUPDOWN + + + ifup + CONFIG_NET + CONFIG_NSH_DISABLE_IFUPDOWN + kill !CONFIG_DISABLE_SIGNALS @@ -3723,9 +3794,9 @@ mount -t vfat /dev/ram1 /tmp
  • /etc/init.d/rcS
  • exec
  • exec_namedapp()
  • +
  • exit
  • -
  • exit
  • free
  • g_cmdmap
  • genromfs
  • @@ -3734,6 +3805,8 @@ mount -t vfat /dev/ram1 /tmp
  • help
  • if-then[-else]-fi
  • ifconfig
  • +
  • ifdown
  • +
  • ifup
  • Initialization sequence
  • kill
  • losetup
  • -- cgit v1.2.3