/** @file\r
The implementation for ifcommand shell command.\r
\r
- Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
}\r
\r
/**\r
- Create an IP child, use it to start the auto configuration, then destory it.\r
+ Create an IP child, use it to start the auto configuration, then destroy it.\r
\r
@param[in] NicInfo The pointer to the NIC_INFO of the Nic to be configured.\r
\r
mTimeout = FALSE;\r
Status = gBS->CreateEvent (\r
EVT_NOTIFY_SIGNAL | EVT_TIMER,\r
- TPL_CALLBACK - 1,\r
+ TPL_CALLBACK,\r
TimeoutToGetMap,\r
NULL,\r
&TimerToGetMap\r
\r
if (StringNoCaseCompare(&Temp, &DhcpTemp) == 0) {\r
//\r
- // Validate the parameter for DHCP, two valid forms: eth0 DHCP and eth0 DHCP perment\r
+ // Validate the parameter for DHCP, two valid forms: eth0 DHCP and eth0 DHCP permanent\r
//\r
if ((Argc != 2) && (Argc!= 3)) {\r
ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellNetwork1HiiHandle, Temp);\r
}\r
\r
if ((OldConfig != NULL) && (OldConfig->Source == IP4_CONFIG_SOURCE_DHCP) &&\r
- (OldConfig->Perment == Permanent)) {\r
+ (OldConfig->Permanent == Permanent)) {\r
\r
ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_IFCONFIG_INTERFACE_CONFIGURED), gShellNetwork1HiiHandle, Info->Name);\r
ShellStatus = SHELL_ALREADY_STARTED;\r
} else if (StringNoCaseCompare(&Temp, &StaticTemp) == 0) {\r
//\r
// validate the parameter, two forms: eth0 static IP NETMASK GATEWAY and\r
- // eth0 static IP NETMASK GATEWAY perment\r
+ // eth0 static IP NETMASK GATEWAY permanent \r
//\r
if ((Argc != 5) && (Argc != 6)) {\r
ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellNetwork1HiiHandle, Temp);\r
\r
//\r
// The correct command line arguments for setting address are:\r
- // IfConfig -s eth0 DHCP [perment]\r
- // IfConfig -s eth0 static ip netmask gateway [perment]\r
+ // IfConfig -s eth0 DHCP [permanent]\r
+ // IfConfig -s eth0 static ip netmask gateway [permanent]\r
//\r
if (Item == NULL || (CountSubItems(Item) < 2) || (CountSubItems(Item) > 6) || (CountSubItems(Item) == 4)) {\r
ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellNetwork1HiiHandle, L"-s");\r