Only execute the udevadm commands if udevadm is in the script path

This commit is contained in:
Didier Raboud
2013-03-02 20:01:55 +01:00
parent a0f001d5ee
commit 2f24ad983f
+1 -1
View File
@@ -4,7 +4,7 @@ set -e
#DEBHELPER# #DEBHELPER#
if [ "$1" = "configure" -o "$1" = "upgrade" ]; then if [ "$1" = "configure" -o "$1" = "upgrade" ] && command -V udevadm >/dev/null 2>&1; then
# apply udev rules at package installation, see # apply udev rules at package installation, see
# <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683863#27> # <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683863#27>
# NOTA BENE: after the DEBHELPER section since dh_installudev # NOTA BENE: after the DEBHELPER section since dh_installudev