diff options
Diffstat (limited to 'sys-power/nut/files/upsdrv.rc6')
-rwxr-xr-x | sys-power/nut/files/upsdrv.rc6 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-power/nut/files/upsdrv.rc6 b/sys-power/nut/files/upsdrv.rc6 new file mode 100755 index 000000000000..85a0c84debad --- /dev/null +++ b/sys-power/nut/files/upsdrv.rc6 @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsdrv.rc6,v 1.1 2006/05/15 23:43:08 robbat2 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!" +} |