]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c
ShellPkg: Update "ls" command to better handle "-r" parameter
[mirror_edk2.git] / ShellPkg / Library / UefiShellLevel2CommandsLib / Reset.c
index f69a79b71a3b50588cd8f7bd90d097ca0d1c2a20..ff9c9d69171169a213019496996e3c0316e62a87 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for attrib shell level 2 function.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2012, 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
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -81,9 +81,9 @@ ShellCommandRunReset (
         } else {\r
           String = ShellCommandLineGetValue(Package, L"-w");\r
           if (String != NULL) {\r
-            gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, StrSize(String), (VOID*)String);\r
+            gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, StrSize(String), (VOID*)String);\r
           } else {\r
-            gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);\r
+            gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL);\r
           }\r
         }\r
       } else if (ShellCommandLineGetFlag(Package, L"-s")) {\r
@@ -105,9 +105,9 @@ ShellCommandRunReset (
         //\r
         String = ShellCommandLineGetValue(Package, L"-c");\r
         if (String != NULL) {\r
-          gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, StrSize(String), (VOID*)String);\r
+          gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, StrSize(String), (VOID*)String);\r
         } else {\r
-          gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL);\r
+          gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);\r
         }\r
       }\r
     }\r