summaryrefslogtreecommitdiff
blob: 114bcb22f3a1ef1371170d5dfaca681433033168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/nut/files/upsdrv.rc6,v 1.4 2004/03/06 03:36:03 vapier Exp $

depend() {
	need net
	before upsd
}

start() {
	ebegin "Starting UPS drivers"
	/sbin/upsdrvctl start
	eend $? "Failed to start UPS drivers!"
}

stop() {
	ebegin "Stopping UPS drivers"
	/sbin/upsdrvctl stop
	eend $? "Failed to stop UPS drivers!"
}