Support --with-systemdsystemshutdowndir=DIR as a separate configure option. Detect presence of systemd, so --with-systemd*=auto is in effect by default
7caa161...
by
Stanislav Brabec <email address hidden>
Detect correct systemdsystemshutdowndir
nut hardcodes systemdsystemshutdowndir to
${libdir}/systemd/system-shutdown. This is not valid:
- Executable helpers are installed to ${libexecdir}, which is different
from ${libdir} on bi-arch systems.
- Even if nut will use ${libexecdir}, it could be different from
systemd libexecdir.
That is why it is better to check systemd.pc for the correct path.
That path is stored as systemdutildir. In older systemd versions,
systemdutildir does not exist yet, and we need to use
systemdsystemunitdir can be used.
Signed-off-by: Stanislav Brabec <email address hidden>
4f14927...
by
Arnaud Quette <email address hidden>
Cppcheck improvements (#405)
Fix all Cppcheck errors, using standard c89:
* Uninitialized variables,
* Memory leak,
* Brackets balancing,
* Common realloc mistake,
* Possible null pointer dereference,
* Array index out of bounds,
* Not null-terminated string
liebert-esp2 changes: Correct battery V scaling, update docs, implement split-phase unit support (#412)
* Update liebert-esp2 documentation, include note that port on GXT2 series does not fully follow RS-232 specs.
* Refactor output format of liebert-esp2 driver to follow that of other drivers to fix the nut-cgi interface as well as for overall consistency. Implement support for 2 phase i.e. split phase input Liebert GXT2 series units. Correct battery voltage scaling for GXT2 series units as well.