]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add CTRL+C support for ‘drivers’ command.
authorTapan Shah <tapandshah@hp.com>
Fri, 29 Aug 2014 20:38:27 +0000 (20:38 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 29 Aug 2014 20:38:27 +0000 (20:38 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hp.com>
Reviewed-By: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15996 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c

index 7dff549548fdc6443f20f815d3e0940270148cbb..ec3190da095b3d22b0cf27bd7766d9020ba6f1c6 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for Drivers shell Driver1 function.\r
 \r
-  (C) Copyright 2012-2014, Hewlett-Packard Development Company, L.P.\r
+  Copyright (c) 2012-2014, Hewlett-Packard Development Company, L.P.<BR>\r
   Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -305,6 +305,11 @@ ShellCommandRunDrivers (
         if (Temp2 != NULL) {\r
           FreePool(Temp2);\r
         }\r
+        \r
+        if (ShellGetExecutionBreakFlag ()) {\r
+          ShellStatus = SHELL_ABORTED;\r
+          break;\r
+        }\r
       }\r
     }\r
     SHELL_FREE_NON_NULL(Language);\r