Expand the check for overriding the OS name to override _OS* (including

_OS_, _OS, and _OSI).  This should fix this option for people who reported
it not changing anything.
This commit is contained in:
Nate Lawson 2004-01-09 20:01:42 +00:00
parent f381ebd8a8
commit 25611cfe97

View File

@ -46,16 +46,19 @@ AcpiOsPredefinedOverride (
ACPI_STRING *NewVal)
{
if (InitVal == NULL || NewVal == NULL)
return(AE_BAD_PARAMETER);
return (AE_BAD_PARAMETER);
*NewVal = NULL;
if (strncmp(InitVal->Name, "_OS_", 4) == 0 &&
getenv_string("hw.acpi.os_name", acpi_os_name, sizeof(acpi_os_name))) {
printf("ACPI: Overriding _OS definition with \"%s\"\n", acpi_os_name);
*NewVal = acpi_os_name;
/* Allow both _OS and _OS_ to be overridden. */
if (strncmp(InitVal->Name, "_OS", 3) == 0 &&
getenv_string("hw.acpi.os_name", acpi_os_name, sizeof(acpi_os_name))) {
printf("ACPI: Overriding _OS definition with \"%s\"\n", acpi_os_name);
*NewVal = acpi_os_name;
}
return(AE_OK);
return (AE_OK);
}
ACPI_STATUS
@ -93,4 +96,3 @@ AcpiOsTableOverride (
return(AE_OK);
}