Browse Source

nut: Reduce user error with POWERDOWNFLAG

Instead of making POWERDOWNFLAG an uci option the user can
only change it via initscript edits.  This avoids chance for users
to miss the required change to nut-driver when setting an UCI option
for nut-monitor which results in failure to do FSD on the UPS.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
lilik-openwrt-22.03
Daniel F. Dickinson 6 years ago
parent
commit
a2f64b3bac
2 changed files with 1 additions and 3 deletions
  1. +1
    -2
      net/nut/files/nut-monitor.init
  2. +0
    -1
      net/nut/files/nut_monitor

+ 1
- 2
net/nut/files/nut-monitor.init View File

@ -35,8 +35,7 @@ nut_upsmon_conf() {
config_get val "$cfg" deadtime 15
echo "DEADTIME $val" >> $UPSMON_C
config_get val "$cfg" powerdownflag /var/run/killpower
echo "POWERDOWNFLAG $val" >> $UPSMON_C
echo "POWERDOWNFLAG /var/run/killpower" >> $UPSMON_C
config_get val "$cfg" onlinemsg
[ -n "$val" ] && echo "NOTIFYMSG ONLINE \"$val\"" >> $UPSMON_C


+ 0
- 1
net/nut/files/nut_monitor View File

@ -8,7 +8,6 @@
# option pollfreqalert 5
# option hostsync 15
# option deadtime 15
# option powerdownflags /var/run/killpower
# option onlinemsg "online message"
# option onbattmsg "on battery message"
# option lowbattmsg "low battery message"


Loading…
Cancel
Save