apcupsd.init 182 B

123456789101112
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006 OpenWrt.org
  3. START=50
  4. STOP=50
  5. start() {
  6. /usr/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf
  7. }
  8. stop() {
  9. kill $(cat /var/run/apcupsd.pid)
  10. }