mirror of
https://github.com/Dasharo/DasharoModulePkg.git
synced 2026-06-13 10:16:41 -07:00
Library/DasharoSystemFeaturesUiLib/DasharoSystemFeatures.c: handle interactive NetworkBoot default
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
This commit is contained in:
@@ -908,5 +908,33 @@ DasharoSystemFeaturesCallback (
|
||||
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
|
||||
)
|
||||
{
|
||||
return EFI_UNSUPPORTED;
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
|
||||
switch (Action) {
|
||||
case EFI_BROWSER_ACTION_DEFAULT_STANDARD:
|
||||
case EFI_BROWSER_ACTION_DEFAULT_MANUFACTURING:
|
||||
{
|
||||
switch (QuestionId) {
|
||||
case 0x1101:
|
||||
{
|
||||
if (Value == NULL)
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
||||
Value->b = PcdGetBool (PcdDefaultNetworkBootEnable);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
Status = EFI_UNSUPPORTED;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
Status = EFI_UNSUPPORTED;
|
||||
break;
|
||||
}
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user