diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index d1dd3d922bd..80c65373937 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: March 18, 2011

+

Last Updated: May 21, 2011

@@ -603,7 +603,7 @@ mount -t vfat /dev/ram1 /tmp The behavior of this script depends upon three things: @@ -620,7 +620,7 @@ mount -t vfat /dev/ram1 /tmp

NOTE: apps/nshlib/rcS.template generates the standard, default nsh_romfsimg.h file. - If CONFIG_NSH_ARCHROMFS is defined in the NuttX configuration file, then a custom, board-specific nsh_romfsimg.h file residing in configs/<board>/include will be used. + If CONFIG_NSH_ARCHROMFS is defined in the NuttX configuration file, then a custom, board-specific nsh_romfsimg.h file residing in configs/<board>/include will be used. NOTE when the OS is configured, include/arch/board will be linked to configs/<board>/include.

@@ -985,21 +985,46 @@ help

Command Syntax:

    -ifconfig
    +ifconfig [nic_name [ip_address]]
     

Synopsis. - Show the current configuration of the network, for example: + Two forms of the ifconfigcommand are supported:

-
    +
      +
    1. +

      + With one or no arguments, ifconfig will shows the + current configuration of the network and, perhaps, the status of ethernet + device: +

      +
        +ifconfig
        +ifconfig [nic_name]
        +
      +

      + As an example: +

      +
         nsh> ifconfig
         eth0    HWaddr 00:18:11:80:10:06
                 IPaddr:10.0.0.2 DRaddr:10.0.0.1 Mask:255.255.255.0
         
      -

      - if uIP statistics are enabled (CONFIG_NET_STATISTICS), then - this command will also show the detailed state of uIP. -

      +

      + If uIP statistics are enabled (CONFIG_NET_STATISTICS), then + this command will also show the detailed state of uIP. +

      +
    2. +
    3. +

      + If both the network interface name and an IP address are supplied as arguments, + then ifconfig will set the address of the ethernet device: +

      +
        +ifconfig nic_name ip_address
        +
          + +
    @@ -1631,7 +1656,7 @@ sh <script-path>

    Synopsis. Execute the sequence of NSH commands in the file referred - to by <script-path>. + to by <script-path>.

    @@ -1696,7 +1721,7 @@ unset <name>

    Synopsis. Remove the value associated with the environment variable - <name>. Example: + <name>. Example:

       nsh> echo $foobar