]> git.99rst.org Git - openwrt-packages.git/commit
nut: fix setting RUNAS and STATEPATH in hotplug scripts
authorDaniel F. Dickinson <redacted>
Thu, 27 Aug 2026 23:56:40 +0000 (19:56 -0400)
committerJosef Schlehofer <redacted>
Thu, 10 Sep 2026 08:22:36 +0000 (10:22 +0200)
commitef7cb6819d8600009851e8003a32027d118bede7
treedd3cb49dfef9db509f95450cba5204f409a5debb
parent9ce5146f9fe2e5dbff998a76e80b89eed0baae26
nut: fix setting RUNAS and STATEPATH in hotplug scripts

A previous PR missed updating the hotplug scripts for the
new find_runas and find_statepath functions which emit
the value on stdout instead of setting a variable in the
caller's scope. Update that usage and handle error conditions.

Also ensure we fully handle finding the group of the RUNAS user for
the serial usb hotplug case, and handle error conditions for that.

Signed-off-by: Daniel F. Dickinson <redacted>
net/nut/files/libhid-ups.hotplug
net/nut/files/nut-serial.hotplug
git clone https://git.99rst.org/PROJECT