From a810a83f410b01c80b9f75f2f8769e49e2605487 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 2 Dec 2009 03:02:47 +0100 Subject: [PATCH] acpid: improve the rc script by /proc/acpi/event existence. --HG-- extra : convert_revision : 3cc23819bdd339c85556773d0fd9aacd0fc0e23e --- srcpkgs/acpid/files/acpid.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcpkgs/acpid/files/acpid.rc b/srcpkgs/acpid/files/acpid.rc index c92be09f7ea..ebafb346b7a 100644 --- a/srcpkgs/acpid/files/acpid.rc +++ b/srcpkgs/acpid/files/acpid.rc @@ -16,6 +16,10 @@ checkconfig() { eerror "ACPI support has not been compiled into the kernel" return 1 fi + if [ ! -e /proc/acpi/event ]; then + eerror "Your kernel needs CONFIG_ACPI_PROC_EVENT support" + return 1 + fi } start() {