packages/net/apcupsd/files/apcupsd.init
blogic 204f73c930 adds apcupsd, thanks Matthias Eller , fixes #2157
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11971 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-28 16:51:41 +00:00

13 lines
182 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
STOP=50
start() {
/usr/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf
}
stop() {
kill $(cat /var/run/apcupsd.pid)
}