mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
45 lines
705 B
Bash
45 lines
705 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/acpid
|
|
#
|
|
# Description : ACPI daemon init script
|
|
#
|
|
########################################################################
|
|
|
|
. /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
|
|
;;
|
|
|
|
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
|