]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
acpid: start also if kernel has no acpi support.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 16 Apr 2018 16:12:24 +0000 (18:12 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 16 Apr 2018 16:12:24 +0000 (18:12 +0200)
acpid is also needed for gpio and hid powerbuttons if there is no
real acpi support.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/system/acpid

index bca69c2b70b33178d65308562195469067b36651..fba487405b9edadca7c5a25b4fcf313a2723d278 100644 (file)
@@ -9,15 +9,11 @@
 . /etc/sysconfig/rc
 . ${rc_functions}
 
-# Test if ACPI is present
-if [ ! -d /proc/acpi ]; then
-       exit 0
-fi
-
 case "${1}" in
        start)
                boot_mesg "Starting ACPI daemon..."
-               loadproc /usr/sbin/acpid
+               loadproc /usr/sbin/acpid > /dev/null 2>&1
+               echo_ok;
                ;;
 
        stop)