debian/nut-server.postinst: The udevd process is called systemd-udevd for quite sometimes already, properly detect whether it's running or not, this should fix the devices permissions for USB UPS's (LP: #1540008)

This commit is contained in:
Laurent Bigonville 2017-01-26 09:08:40 +01:00
parent 21b0ce7971
commit d31c6dcb9b
2 changed files with 9 additions and 1 deletions

8
debian/changelog vendored
View file

@ -1,3 +1,11 @@
nut (2.7.4-6) UNRELEASED; urgency=medium
* debian/nut-server.postinst: The udevd process is called systemd-udevd for
quite sometimes already, properly detect whether it's running or not, this
should fix the devices permissions for USB UPS's (LP: #1540008)
-- Laurent Bigonville <bigon@debian.org> Thu, 26 Jan 2017 09:05:15 +0100
nut (2.7.4-5) unstable; urgency=medium
* debian/control: Build-depends against asciidoc-dblatex, Recommends are not

View file

@ -64,7 +64,7 @@ case "$1" in
fi
# ask udev to check for new udev rules
[ -x /etc/init.d/udev ] && pidof udevd > /dev/null \
[ -x /etc/init.d/udev ] && pidof systemd-udevd > /dev/null \
&& udevadm trigger --subsystem-match=usb --action=change
# 557178 udevadm trigger --subsystem-match=usb