1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/sysutils/nut22/files/patch-ac
James E. Housley 081d9ac52f Update to version 0.44.3
- Updaet gd dependancy
- Added missing MAN8
- Merged pkg-plist.(doc|cgi) into pkg-plist
- General cleanup
2001-03-23 13:32:11 +00:00

27 lines
745 B
Plaintext

diff -ur ../442/scripts/FreeBSD/upsd.sh.sample ./scripts/FreeBSD/upsd.sh.sample
--- ../442/scripts/FreeBSD/upsd.sh.sample Sun Jan 16 04:22:27 2000
+++ ./scripts/FreeBSD/upsd.sh.sample Thu Jan 4 11:51:18 2001
@@ -2,7 +2,9 @@
PREFIX=%%PREFIX%%
+BIN=${PREFIX}/bin
SBIN=${PREFIX}/sbin
+MODELS=${PREFIX}/libexec/nut
UPSTYPE="apcsmart"
UPSFLAGS=""
UPSDEV="/dev/cuaa3"
@@ -10,10 +12,10 @@
UPSLOGINTERVAL="300"
if [ x$1 = xstart ]; then
- ${SBIN}/$UPSTYPE $UPSFLAGS $UPSDEV
+ ${MODELS}/$UPSTYPE $UPSFLAGS $UPSDEV
${SBIN}/upsd
${SBIN}/upsmon localhost
- ${SBIN}/upslog localhost $UPSLOG $UPSLOGINTERVAL
+ ${BIN}/upslog localhost $UPSLOG $UPSLOGINTERVAL
elif [ "x$1" = "xstop" ]; then
/usr/bin/killall upslog upsmon upsd $UPSTYPE
fi