summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut/files/upsd
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/ups-nut/files/upsd')
-rwxr-xr-xsysutils/ups-nut/files/upsd6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/ups-nut/files/upsd b/sysutils/ups-nut/files/upsd
index c89fffeeadd..b51e1208497 100755
--- a/sysutils/ups-nut/files/upsd
+++ b/sysutils/ups-nut/files/upsd
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: upsd,v 1.2 2001/11/20 16:59:10 jlam Exp $
+# $NetBSD: upsd,v 1.3 2001/11/21 03:22:05 simonb Exp $
#
# PROVIDE: upsd
# REQUIRE: NETWORK syslogd mountcritremote
@@ -16,7 +16,7 @@
if [ -z "$1" -o "x$1" = xstart ]; then
if [ "x${upsd}" = xYES ]; then
- %%PREFIX%%/bin/${upsd_driver} ${upsd_flags} ${upsd_dev}
+ %%PREFIX%%/sbin/ups-drivers/${upsd_driver} ${upsd_flags} ${upsd_dev}
%%PREFIX%%/sbin/upsd
fi
@@ -25,7 +25,7 @@ if [ -z "$1" -o "x$1" = xstart ]; then
fi
elif [ "x$1" = xstop ]; then
echo "Stopping upsd - caveat, this may not work if multiple instances are running"
- dpid=`ps ax | fgrep %%PREFIX%%/bin/${upsd_driver} | fgrep -v fgrep | awk '{print $1}'`
+ dpid=`ps ax | fgrep %%PREFIX%%/sbin/ups-drivers/${upsd_driver} | fgrep -v fgrep | awk '{print $1}'`
upid=`ps ax | fgrep %%PREFIX%%/sbin/upsd | fgrep -v fgrep | awk '{print $1}'`
if [ ! -z "${upid}" ]; then
kill ${upid}