ACPI: re-add check for kernel support
authorChristian Hofstaedtler <ch@grml.org>
Wed, 16 Nov 2011 10:28:56 +0000 (11:28 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Wed, 16 Nov 2011 10:28:56 +0000 (11:28 +0100)
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

index 6fa4d37..a137626 100755 (executable)
@@ -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