nut: refactor nut-monitor uci config file

Convert notifyflags options to lists as supported by the init script, so multiple options can be chosen.
Add SYSLOG default option to individuals notifyflags instead of deprecated flag 1|0.
Add comment for defaultnotify and individuals notifyflags about possible values.

Signed-off-by: Pascal Coudurier <coudu@wanadoo.fr>
This commit is contained in:
Pascal Coudurier 2022-01-04 14:11:14 +01:00 committed by Rosen Penev
parent a46fd908df
commit 0f91594e2a
2 changed files with 12 additions and 12 deletions

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=nut PKG_NAME:=nut
PKG_VERSION:=2.7.4 PKG_VERSION:=2.7.4
PKG_RELEASE:=24 PKG_RELEASE:=25
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.networkupstools.org/source/2.7/ PKG_SOURCE_URL:=http://www.networkupstools.org/source/2.7/

View file

@ -3,7 +3,7 @@
# option minsupplies 1 # option minsupplies 1
# option shutdowncmd '/usr/sbin/nutshutdown' # option shutdowncmd '/usr/sbin/nutshutdown'
# option notifycmd /path/to/cmd # option notifycmd /path/to/cmd
# list defaultnotify SYSLOG # list defaultnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option pollfreq 5 # option pollfreq 5
# option pollfreqalert 5 # option pollfreqalert 5
# option hostsync 15 # option hostsync 15
@ -18,16 +18,16 @@
# option replbattmsg "replace battery message" # option replbattmsg "replace battery message"
# option nocommmsg "no communications message" # option nocommmsg "no communications message"
# option noparentmsg "no parent message" # option noparentmsg "no parent message"
# option onlinenotify "online notify flag 1|0" # list onlinenotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option onbattnotify "on battery notify flag 1|0" # list onbattnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option lowbattnotify "low battery notify flag 1|0" # list lowbattnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option fsdnotify "forced shutdown notify flag 1|0" # list fsdnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option comoknotify "communications restored notify flag 1|0" # list comoknotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option combadnotify "communications bad notify flag 1|0" # list combadnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option shutdownotify "shutdown notify flag 1|0" # list shutdownotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option replbattnotify "replace battery notify flag 1|0" # list replbattnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option nocommnotify "no communications notify flag 1|0" # list nocommnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option noparentnotify "no parent notify flag 1|0" # list noparentnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option rbwarntime 4200 # replace battery warn time # option rbwarntime 4200 # replace battery warn time
# option nocommwarntime 300 # no communications warn time # option nocommwarntime 300 # no communications warn time
# option finaldelay 5 # final delay # option finaldelay 5 # final delay