From: Christian Hofstaedtler Date: Wed, 16 Nov 2011 10:28:56 +0000 (+0100) Subject: ACPI: re-add check for kernel support X-Git-Tag: v0.9.34~10 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=74180eeaffe3f0fa5adec342f23b72b8ce338ca4 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. --- 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