summaryrefslogtreecommitdiff
path: root/ShellPkg/Application/Shell/Shell.h
diff options
context:
space:
mode:
authorjaben carsey <jaben.carsey@intel.com>2013-06-27 16:11:39 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2013-06-27 16:11:39 +0000
commitca79c798217775368b6c6a0d0720f221ed2a62ef (patch)
treee72f19d3589f85d3ef496cc06d3804b19ecd7180 /ShellPkg/Application/Shell/Shell.h
parent4986bbaf1151d1cccc1f2589bd13a86b539676b2 (diff)
downloadedk2-platforms-ca79c798217775368b6c6a0d0720f221ed2a62ef.tar.xz
ShellPkg: make automatically created shells quit automatically
This creates a new parameter to this shell implementation “_exit” that causes the shell to automatically exit after running the initial specified command line. This also automatically uses that command in the Execute() API. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey <jaben.carsey@intel.com> Reviewed-by: Samer El-Haj-Mahmoud <elhaj@hp.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14444 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application/Shell/Shell.h')
-rw-r--r--ShellPkg/Application/Shell/Shell.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ShellPkg/Application/Shell/Shell.h b/ShellPkg/Application/Shell/Shell.h
index da98fc1a56..2ed05b8a1c 100644
--- a/ShellPkg/Application/Shell/Shell.h
+++ b/ShellPkg/Application/Shell/Shell.h
@@ -1,7 +1,7 @@
/** @file
function definitions for internal to shell functions.
- Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
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
@@ -71,7 +71,8 @@ typedef struct {
UINT32 NoMap:1; ///< Was "-nomap" found on command line.
UINT32 NoVersion:1; ///< Was "-noversion" found on command line.
UINT32 Delay:1; ///< Was "-delay[:n] found on command line
- UINT32 Reserved:8; ///< Extra bits
+ UINT32 Exit:1; ///< Was "-_exit" found on command line
+ UINT32 Reserved:7; ///< Extra bits
} SHELL_BITS;
typedef union {