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

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