blob: 0493b13ebdd7e5344eefe08b5584d4896d5f1e60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|