Note in MESSAGE that the _nut user must have permission to access the
relevant device nodes if using a USB UPS. Suggested by Alexey Suslikov.
This commit is contained in:
parent
6bcd8a2e0b
commit
484427e60a
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.37 2010/04/15 14:29:16 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.38 2010/06/26 11:11:12 sthen Exp $
|
||||
|
||||
COMMENT-main= UPS monitoring program supporting many brands
|
||||
COMMENT-cgi= CGIs for monitoring Nut-based UPSs
|
||||
COMMENT-snmp= driver for monitoring UPSs via SNMP
|
||||
|
||||
DISTNAME= nut-2.4.3
|
||||
PKGNAME-main= ${DISTNAME}
|
||||
PKGNAME-main= ${DISTNAME}p0
|
||||
PKGNAME-cgi= ${DISTNAME:S/-/-cgi-/}
|
||||
PKGNAME-snmp= ${DISTNAME:S/-/-snmp-/}p0
|
||||
CATEGORIES= sysutils
|
||||
|
@ -8,3 +8,7 @@ if [ -x ${PREFIX}/bin/upsdrvctl ]; then
|
||||
${PREFIX}/sbin/upsd > /dev/null 2>&1
|
||||
${PREFIX}/sbin/upsmon > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
For USB-connected devices, the userid running NUT (normally _nut unless
|
||||
set otherwise with the -u option) must have write access to the relevant
|
||||
devices: /dev/usbX to detect the UPS, and /dev/ugenX.XX to control it.
|
||||
|
Loading…
Reference in New Issue
Block a user