diff options
Diffstat (limited to 'sysutils/nut22/files/patch-ac')
-rw-r--r-- | sysutils/nut22/files/patch-ac | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/nut22/files/patch-ac b/sysutils/nut22/files/patch-ac new file mode 100644 index 000000000000..0493b13ebdd7 --- /dev/null +++ b/sysutils/nut22/files/patch-ac @@ -0,0 +1,26 @@ +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 |