/* This routine is called to check if CapsuleOnDisk flag in OsIndications Variable is enabled. */
BOOLEAN EFIAPI CoDCheckCapsuleOnDiskFlag(VOID)
/* This routine is called to check if CapsuleOnDisk flag in OsIndications Variable is enabled. */
BOOLEAN EFIAPI CoDCheckCapsuleOnDiskFlag(VOID)
{
  EFI_STATUS  Status;
  UINT64      OsIndication;
  UINTN       DataSize;
  OsIndication = 0;
  DataSize     = sizeof (UINT64);
  Status       = gRT->GetVariable (
                        EFI_OS_INDICATIONS_VARIABLE_NAME,
                        &gEfiGlobalVariableGuid,
                        NULL,
                        &DataSize,
                        &OsIndication
                        );
  if (!EFI_ERROR (Status) &&
      ((OsIndication & EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED) != 0))
  {
    return TRUE;
  }
  return FALSE;
}