From 74180eeaffe3f0fa5adec342f23b72b8ce338ca4 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Wed, 16 Nov 2011 11:28:56 +0100 Subject: [PATCH 1/1] ACPI: re-add check for kernel support As kernel support can still be disabled with acpi=off, keep the check for /proc/acpi (which is what acpi_available does, too). Just don't make give this so much leeway. --- autoconfig.functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoconfig.functions b/autoconfig.functions index 6fa4d37..a137626 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -697,6 +697,8 @@ if checkbootparam 'noacpi'; then ewarn "ACPI: Not loading modules as requested by boot option \"noacpi\"." ; eend 0 elif checkbootparam 'nogrmlacpi' ; then ewarn "ACPI: Not loading modules as requested by boot option \"nogrmlacpi\"." ; eend 0 +elif [ ! -d /proc/acpi ] ; then + ewarn "ACPI: Kernel support not present." ; eend 0 else einfo "ACPI: Loading modules (disable with boot option noacpi / nogrmlacpi): " eindent -- 2.1.4