mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 14:03:00 +02:00
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>
41 lines
666 B
Bash
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
|