Files
bpfire/src/initscripts/system/acpid
Arne Fitzenreiter eef0d706e8 acpid: start also if kernel has no acpi support.
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>
2018-04-16 18:12:24 +02:00

41 lines
666 B
Bash

#!/bin/sh
########################################################################
# Begin $rc_base/init.d/acpid
#
# Description : ACPI daemon init script
#
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
boot_mesg "Starting ACPI daemon..."
loadproc /usr/sbin/acpid > /dev/null 2>&1
echo_ok;
;;
stop)
boot_mesg "Stopping ACPI daemon..."
killproc /usr/sbin/acpid
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /usr/sbin/acpid
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/acpid