nut: Prevent FSD when not specifically requested
authorDaniel F. Dickinson <cshored@thecshore.com>
Sun, 6 Jan 2019 23:32:52 +0000 (18:32 -0500)
committerDaniel F. Dickinson <cshored@thecshore.com>
Tue, 8 Jan 2019 09:07:01 +0000 (04:07 -0500)
commitcb06f0250425d20b9d600b0a6e9002a1c5bc5a75
tree9b79373dd9cbbbdbcb214c771bb50146a8cae0eb
parent483c9fceae100dd7c205c614a35907ecc9496965
nut: Prevent FSD when not specifically requested

Under certain circumstances nutshutdown was causing a forced
shutdown of the UPS even though killpower was not indicated.
Prevent that.  Also clarify the logic for powering off server
by avoiding && || chains.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
net/nut/Makefile
net/nut/files/nutshutdown