summaryrefslogtreecommitdiff
path: root/util/mtp-hotplug.c
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2010-12-07 20:19:23 +0000
committerLinus Walleij <triad@df.lth.se>2010-12-07 20:19:23 +0000
commit6190146bc4e111db2c650cd1e288604f76216b0f (patch)
tree8770798a0e1ead43aefbe8c8597961281815257b /util/mtp-hotplug.c
parentf430680a7a075ba215ea35cc8f7e37438f4b7e64 (diff)
downloadlibmtp-6190146bc4e111db2c650cd1e288604f76216b0f.tar.gz
Improve udev rules
Diffstat (limited to 'util/mtp-hotplug.c')
-rw-r--r--util/mtp-hotplug.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/util/mtp-hotplug.c b/util/mtp-hotplug.c
index c403a05..95807e4 100644
--- a/util/mtp-hotplug.c
+++ b/util/mtp-hotplug.c
@@ -197,11 +197,9 @@ int main (int argc, char **argv)
* This is code that invokes the mtp-probe program on
* every USB device that is either PTP or vendor specific
*/
- printf("\n# Autoprobe PTP devices\n");
- printf("ENV{ID_MTP_DEVICE}!=\"1\", ATTR{bDeviceClass}==\"06\", PROGRAM=\"/lib/udev/mtp-probe /sys$env{DEVPATH} $attr{busnum} $attr{devnum}\", RESULT==\"1\", %s\n", action);
- printf("\n# Autoprobe vendor-specific devices\n");
- printf("ENV{ID_MTP_DEVICE}!=\"1\", ATTR{bDeviceClass}==\"ff\", PROGRAM=\"/lib/udev/mtp-probe /sys$env{DEVPATH} $attr{busnum} $attr{devnum}\", RESULT==\"1\", %s\n\n", action);
- printf("LABEL=\"libmtp_rules_end\"\n");
+ printf("\n# Autoprobe vendor-specific and PTP devices\n");
+ printf("ENV{ID_MTP_DEVICE}!=\"1\", ATTR{bDeviceClass}==\"00|06|ff\", PROGRAM=\"/lib/udev/mtp-probe /sys$env{DEVPATH} $attr{busnum} $attr{devnum}\", RESULT==\"1\", %s\n", action);
+ printf("\nLABEL=\"libmtp_rules_end\"\n");
break;
case style_hal:
printf(" </match>\n");