adds apcupsd, thanks Matthias Eller , fixes #2157
[openwrt/svn-archive/archive.git] / net / apcupsd / files / apcupsd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 START=50
4 STOP=50
5
6 start() {
7 /usr/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf
8 }
9
10 stop() {
11 kill $(cat /var/run/apcupsd.pid)
12 }