Commit Graph

8 Commits

Author SHA1 Message Date
Rob J. Epping
ae207992b1 nut: add cable type nut driver config
at least driver apcsmart-old (maybe more) allow for specifying the
type of cable used. My old UPS does will not function when cable type
is not specified.

This will add support for configuration option 'cable'

Signed-off-by: Rob J. Epping <epping@renf.us>
2022-11-17 19:51:47 +08:00
Pascal Coudurier
231f0e5ae3 nut: refactor upssched uci-defaults script
Add checks not to overwrite defaultnotify options in the nut-sendmail-notify fashion.
Use lists for defaultnotify instead of option.
Add check not to overwrite notifycmd if already defined.
upssched-cmd script must not be called directly, it is called by the upssched binary with needed arguments.

Signed-off-by: Pascal Coudurier <coudu@wanadoo.fr>
2022-11-17 19:51:46 +08:00
Pascal Coudurier
3603d9d787 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>
2022-11-17 19:51:46 +08:00
Pascal Coudurier
5d0703ceaf nut: fix typo in nut-monitor init script
This fixes a typo in the nut-monitor init script when building config file from uci config.

Signed-off-by: Pascal Coudurier <coudu@wanadoo.fr>
2022-11-17 19:51:46 +08:00
Seb Belcher
a5f83f9d2b nut: Add the option to compile Nut NetXML drivers with the Nut package.
Also modifies the nut-server init script to include options specific to the netxml driver.

Signed-off-by: Seb Belcher <sdjbelcher@gmail.com>
2022-11-17 19:51:46 +08:00
lean
49b7495639 packages: merge upstream 2021-06-15 17:47:11 +08:00
coolsnowwolf
1625aa4990 nut: bump version 2020-02-21 14:42:51 +08:00
coolsnowwolf
d17588da1a first commit 2018-10-18 16:56:47 +08:00