]> git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellDriver1CommandsLib/Reconnect.c
Adding Driver1 profile commands to the UEFI Shell 2.0.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDriver1CommandsLib / Reconnect.c
1 /** @file
2 Main file for Reconnect shell Driver1 function.
3
4 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include "UefiShellDriver1CommandsLib.h"
16
17 SHELL_STATUS
18 EFIAPI
19 ShellCommandRunReconnect (
20 IN EFI_HANDLE ImageHandle,
21 IN EFI_SYSTEM_TABLE *SystemTable
22 )
23 {
24 SHELL_STATUS ShellStatus;
25
26 ShellStatus = ShellCommandRunDisconnect(ImageHandle, SystemTable);
27 if (ShellStatus == SHELL_SUCCESS) {
28 ShellStatus = ShellCommandRunConnect(ImageHandle, SystemTable);
29 }
30 return (ShellStatus);
31 }