Browse Source

nut: Actually do FSD when required

The code was all there but the call do the function containing it was missing,
so call the function so that forced (UPS) shutdown occurs on a battery critical
or manually requested FSD situation.

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

+ 1
- 1
net/nut/Makefile View File

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


+ 2
- 0
net/nut/files/nutshutdown View File

@ -47,3 +47,5 @@ do_fsd() {
poweroff
fi
}
do_fsd

Loading…
Cancel
Save