\r
Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+ (C) Copyright 2015 Hewlett Packard Enterprise Development LP<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
Execute the passed in file like a series of commands. The ; can be used on\r
- a single line to indicate multiple commands per line. The Ascii text file \r
- can contain any number of lines. The following line termination forms are \r
+ a single line to indicate multiple commands per line. The Ascii text file\r
+ can contain any number of lines. The following line termination forms are\r
supported:\r
LF : Unix, Mac OS X*, BeOS\r
CR+LF: MS-DOS*, Microsoft Windows*\r
- CR : Commodore, Apple II, and realy Mac OS\r
- LF+CR: for simplicity and completeness \r
+ CR : Commodore, Apple II, and really Mac OS\r
+ LF+CR: for simplicity and completeness\r
\r
Argv[0] - "script"\r
Argv[1] - Device Name:path for the file to load\r
script fv1:\script.txt\r
\r
@param Argc Number of command arguments in Argv\r
- @param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ @param Argv Array of strings that represent the parsed command line.\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
**/\r
EFI_STATUS\r
+EFIAPI\r
EblScriptCmd (\r
IN UINTN Argc,\r
IN CHAR8 **Argv\r
CHAR8 *Ptr;\r
CHAR8 *ScanPtr;\r
UINTN CmdLineSize;\r
- \r
- \r
+\r
+\r
\r
if (Argc < 2) {\r
// file name required\r
CmdLineSize++;\r
break;\r
}\r
- \r
+\r
}\r
\r
Status = ProcessCmdLine (Ptr, CmdLineSize);\r
}\r
- \r
+\r
FreePool (Address);\r
}\r
- \r
+\r
EfiClose (File);\r
return Status;\r
}\r
GLOBAL_REMOVE_IF_UNREFERENCED const EBL_COMMAND_TABLE mScriptTemplate[] = {\r
{\r
"script",\r
- " device:path; load an ascii file and execute it like commands", \r
+ " device:path; load an ascii file and execute it like commands",\r
NULL,\r
EblScriptCmd\r
}\r