1
0

acpid.init 445 B

12345678910111213141516171819202122232425
  1. #!/bin/ash /etc/rc.common
  2. # Copyright (C) 2009-2010 OpenWrt.org
  3. START=99
  4. STOP=80
  5. ACPID_BIN="/usr/sbin/acpid"
  6. ACPID_PID="/var/run/acpid.pid"
  7. start() {
  8. [ -x "$ACPID_BIN" ] || return 1
  9. start-stop-daemon -S -x $ACPID_BIN -p $ACPID_PID
  10. }
  11. boot() {
  12. # Do nothing on boot
  13. [ -x "$ACPID_BIN" ] || return 1
  14. start-stop-daemon -S -x $ACPID_BIN -p $ACPID_PID
  15. exit 0
  16. }
  17. stop() {
  18. service_kill ${ACPID_BIN##*/} $ACPID_PID
  19. rm -f $ACPID_PID
  20. }