From f648e29d050cab362cc660c1a5c5109182028768 Mon Sep 17 00:00:00 2001 From: kavsrf Date: Mon, 23 Jan 2017 15:30:22 +0300 Subject: DcsInfo added DcsBoot is driver now (to support DriverOrder list) --- DcsBoot/DcsBoot.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'DcsBoot/DcsBoot.c') diff --git a/DcsBoot/DcsBoot.c b/DcsBoot/DcsBoot.c index bccf216..60c8eed 100644 --- a/DcsBoot/DcsBoot.c +++ b/DcsBoot/DcsBoot.c @@ -16,6 +16,7 @@ https://opensource.org/licenses/LGPL-3.0 #include #include #include +#include "DcsConfig.h" EFI_GUID ImagePartGuid; EFI_GUID *gEfiExecPartGuid = &ImagePartGuid; @@ -41,12 +42,19 @@ DcsBootMain( EFI_STATUS res; UINTN len; UINT32 attr; + int drvInst; InitBio(); res = InitFS(); if (EFI_ERROR(res)) { ERR_PRINT(L"InitFS %r\n", res); } + drvInst = ConfigReadInt("DcsDriver", 0); + + if (!FileExist(NULL, L"\\EFI\\VeraCrypt\\PlatformInfo") && + !FileExist(NULL, L"\\EFI\\VeraCrypt\\DcsInfo.dcs")) { + res = EfiExec(NULL, L"\\EFI\\VeraCrypt\\DcsInfo.dcs"); + } // Load all drivers res = EfiExec(NULL, L"\\EFI\\VeraCrypt\\LegacySpeaker.dcs"); -- cgit v1.2.3