You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
445 B

  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. }