diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2024-04-05 20:11:23 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2024-04-05 22:28:59 +0200 |
commit | f603ff80a70d0a733c85f1ff718ef6bf84a50f6e (patch) | |
tree | 82e6ec7896ceb6d6e40e9c3f404536c6002d71a7 /source/a/nut/rc.nut-drvctl | |
parent | e0375de323e06c97669ffcca2033f414e460c413 (diff) | |
download | current-f603ff80a70d0a733c85f1ff718ef6bf84a50f6e.tar.gz current-f603ff80a70d0a733c85f1ff718ef6bf84a50f6e.tar.xz |
Fri Apr 5 20:11:23 UTC 202420240405201123
a/etc-15.1-x86_64-10.txz: Rebuilt.
Added nut user (218) and nut group (218).
a/genpower-1.0.5-x86_64-5.txz: Removed.
a/nut-2.8.2-x86_64-1.txz: Added.
This is a package to support uninterruptible power supplies, and replaces
the obsolete genpower package.
Thanks to V'yacheslav Stetskevych for the original SBo script.
a/sysvinit-scripts-15.1-noarch-16.txz: Rebuilt.
rc.M: start the NUT init scripts rc.nut-drvctl, rc.nut-upsd, and
rc.nut-upsmon. Remove the genpower block.
rc.6: support stopping the UPS inverter on the way down if we see
/etc/killpower. Remove the genpower block.
a/tcsh-6.24.12-x86_64-1.txz: Upgraded.
ap/man-db-2.12.1-x86_64-1.txz: Upgraded.
ap/mpg123-1.32.6-x86_64-1.txz: Upgraded.
ap/vim-9.1.0265-x86_64-1.txz: Upgraded.
d/cargo-vendor-filterer-0.5.14-x86_64-1.txz: Upgraded.
d/nasm-2.16.02-x86_64-1.txz: Upgraded.
l/libproxy-0.5.5-x86_64-1.txz: Upgraded.
l/python-hatchling-1.22.5-x86_64-1.txz: Upgraded.
l/python-typing_extensions-4.11.0-x86_64-1.txz: Upgraded.
x/xdm-1.1.16-x86_64-1.txz: Upgraded.
xap/vim-gvim-9.1.0265-x86_64-1.txz: Upgraded.
extra/bash-completion/bash-completion-2.13.0-noarch-1.txz: Upgraded.
extra/tigervnc/tigervnc-1.13.1-x86_64-5.txz: Rebuilt.
Recompiled against xorg-server-21.1.12 to fix security issues:
Heap buffer overread/data leakage in ProcXIGetSelectedEvents.
Heap buffer overread/data leakage in ProcXIPassiveGrabDevice.
Heap buffer overread/data leakage in ProcAppleDRICreatePixmap.
Use-after-free in ProcRenderAddGlyphs.
For more information, see:
https://lists.x.org/archives/xorg-announce/2024-April/003497.html
https://www.cve.org/CVERecord?id=CVE-2024-31080
https://www.cve.org/CVERecord?id=CVE-2024-31081
https://www.cve.org/CVERecord?id=CVE-2024-31082
https://www.cve.org/CVERecord?id=CVE-2024-31083
(* Security fix *)
Diffstat (limited to 'source/a/nut/rc.nut-drvctl')
-rw-r--r-- | source/a/nut/rc.nut-drvctl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/source/a/nut/rc.nut-drvctl b/source/a/nut/rc.nut-drvctl new file mode 100644 index 000000000..c310d26c8 --- /dev/null +++ b/source/a/nut/rc.nut-drvctl @@ -0,0 +1,32 @@ +#!/bin/sh +# NUT ups model-specific drivers start-up and shutdown script. +# This should be started before rc.nut-upsd on the machine connected to the +# UPS's control port. See /etc/nut/ for configuration files. + +# Start upsdrvctl: +upsdrvctl_start() { + # Make sure the runtime directory is there: + mkdir -p /run/nut + chown -R nut:nut /run/nut + chmod 0770 /run/nut + # Load NUT driver(s): + echo "Starting the NUT UPS driver controller: upsdrvctl -u nut start" + upsdrvctl -u nut start +} + +# Stop upsdrvctl: +upsdrvctl_stop() { + echo "Stopping the NUT UPS driver controller." + upsdrvctl stop +} + +case "$1" in +'start') + upsdrvctl_start + ;; +'stop') + upsdrvctl_stop + ;; +*) + echo "usage $0 start|stop" +esac |