Control: tag -1 patch
Control: retitle -1 stop calling mtp-probe if it is not installed

This trivial patch instructs udev to not call mtp-probe if it is not 
available.
Please apply: this silly bug has been around since 2011.

--- 69-libmtp.rules.orig        2017-12-24 16:14:29.102926048 +0100
+++ 69-libmtp.rules     2017-12-24 16:12:11.188007015 +0100
@@ -2279,6 +2279,8 @@
 # Isabella Her Prototype
 ATTR{idVendor}=="0b20", ATTR{idProduct}=="ddee", SYMLINK+="libmtp-%k", 
MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
 
+TEST!="/lib/udev/mtp-probe", GOTO="libmtp_rules_end"
+
 # Autoprobe vendor-specific, communication and PTP devices
 ENV{ID_MTP_DEVICE}!="1", ENV{MTP_NO_PROBE}!="1", 
ENV{COLOR_MEASUREMENT_DEVICE}!="1", ENV{libsane_matched}!="yes", 
ATTR{bDeviceClass}=="00|02|06|ef|ff", PROGRAM="mtp-probe /sys$env{DEVPATH} 
$attr{busnum} $attr{devnum}", RESULT=="1", SYMLINK+="libmtp-%k", MODE="660", 
GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1" 


-- 
ciao,
Marco

Attachment: signature.asc
Description: PGP signature

Reply via email to