X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EmbeddedPkg%2FEbl%2FScript.c;h=73360cb24840f5166ea77c2bc76add025b6e7e36;hb=6f6bf5c77214ae2449bffbe36c33faeca4663e01;hp=2229005d1c5265f09724b8960c2f3b90b75313f5;hpb=2ef2b01e07c02db339f34004445734a2dbdd80e1;p=mirror_edk2.git
diff --git a/EmbeddedPkg/Ebl/Script.c b/EmbeddedPkg/Ebl/Script.c
index 2229005d1c..73360cb248 100644
--- a/EmbeddedPkg/Ebl/Script.c
+++ b/EmbeddedPkg/Ebl/Script.c
@@ -1,10 +1,11 @@
/** @file
Script command allows the execution of commands from a text file
- Copyright (c) 2007, Intel Corporation
- Portions copyright (c) 2008-2009, Apple Inc. All rights reserved.
+ Copyright (c) 2007, Intel Corporation. All rights reserved.
+ Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
+ (C) Copyright 2015 Hewlett Packard Enterprise Development LP
- All rights reserved. This program and the accompanying materials
+ This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
@@ -21,13 +22,13 @@
/**
Execute the passed in file like a series of commands. The ; can be used on
- a single line to indicate multiple commands per line. The Ascii text file
- can contain any number of lines. The following line termination forms are
+ a single line to indicate multiple commands per line. The Ascii text file
+ can contain any number of lines. The following line termination forms are
supported:
LF : Unix, Mac OS X*, BeOS
CR+LF: MS-DOS*, Microsoft Windows*
- CR : Commodore, Apple II, and realy Mac OS
- LF+CR: for simplicity and completeness
+ CR : Commodore, Apple II, and really Mac OS
+ LF+CR: for simplicity and completeness
Argv[0] - "script"
Argv[1] - Device Name:path for the file to load
@@ -35,13 +36,14 @@
script fv1:\script.txt
@param Argc Number of command arguments in Argv
- @param Argv Array of strings that represent the parsed command line.
- Argv[0] is the comamnd name
+ @param Argv Array of strings that represent the parsed command line.
+ Argv[0] is the command name
@return EFI_SUCCESS
**/
EFI_STATUS
+EFIAPI
EblScriptCmd (
IN UINTN Argc,
IN CHAR8 **Argv
@@ -54,8 +56,8 @@ EblScriptCmd (
CHAR8 *Ptr;
CHAR8 *ScanPtr;
UINTN CmdLineSize;
-
-
+
+
if (Argc < 2) {
// file name required
@@ -85,15 +87,15 @@ EblScriptCmd (
CmdLineSize++;
break;
}
-
+
}
Status = ProcessCmdLine (Ptr, CmdLineSize);
}
-
+
FreePool (Address);
}
-
+
EfiClose (File);
return Status;
}
@@ -103,7 +105,7 @@ EblScriptCmd (
GLOBAL_REMOVE_IF_UNREFERENCED const EBL_COMMAND_TABLE mScriptTemplate[] = {
{
"script",
- " device:path; load an ascii file and execute it like commands",
+ " device:path; load an ascii file and execute it like commands",
NULL,
EblScriptCmd
}