diff options
author | simonb <simonb> | 2001-11-21 03:22:05 +0000 |
---|---|---|
committer | simonb <simonb> | 2001-11-21 03:22:05 +0000 |
commit | dfe25d348c543fe495391d37bc00dee7e612a06c (patch) | |
tree | 41259d7a12d0f6cd50bf40e5726b62ee7f04af4b /sysutils/ups-nut/files/upsd | |
parent | 4e7178f80b78d3ce4b04283f06adc25482d952dd (diff) | |
download | pkgsrc-dfe25d348c543fe495391d37bc00dee7e612a06c.tar.gz |
Move the individual UPS drivers from ${PREFIX}/bin to
${PREFIX}/sbin/ups-drivers.
Diffstat (limited to 'sysutils/ups-nut/files/upsd')
-rwxr-xr-x | sysutils/ups-nut/files/upsd | 6 |
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} |