Permalink
Browse files

Skip probe on Canon 0x22* products

Signed-off-by: Linus Walleij <triad@df.lth.se>
  • Loading branch information...
1 parent bda39ab commit 1ff1a64acc1f789e85029d41c71903d119b5c8bb @linusw linusw committed Jan 28, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 util/mtp-hotplug.c
View
7 util/mtp-hotplug.c
@@ -2,7 +2,7 @@
* \file mtp-hotplug.c
* Program to create hotplug scripts.
*
- * Copyright (C) 2005-2011 Linus Walleij <triad@df.lth.se>
+ * Copyright (C) 2005-2012 Linus Walleij <triad@df.lth.se>
* Copyright (C) 2006-2008 Marcus Meissner <marcus@jet.franken.de>
*
* This library is free software; you can redistribute it and/or
@@ -140,11 +140,14 @@ int main (int argc, char **argv)
printf("SUBSYSTEM==\"usb\", GOTO=\"libmtp_usb_rules\"\n"
"GOTO=\"libmtp_rules_end\"\n\n"
"LABEL=\"libmtp_usb_rules\"\n\n");
- printf("# Some sensitive devices we surely don\'t wanna probe, color instruments\n");
+ printf("# Some sensitive devices we surely don\'t wanna probe\n");
+ printf("# Color instruments\n");
printf("ATTR{idVendor}==\"0670\", GOTO=\"libmtp_rules_end\"\n");
printf("ATTR{idVendor}==\"0765\", GOTO=\"libmtp_rules_end\"\n");
printf("ATTR{idVendor}==\"085c\", GOTO=\"libmtp_rules_end\"\n");
printf("ATTR{idVendor}==\"0971\", GOTO=\"libmtp_rules_end\"\n");
+ printf("# Canon scanners that look like MTP devices (PID 0x22nn)\n");
+ printf("ATTR{idVendor}==\"04a9\", ATTR{idProduct}==\"22*\", GOTO=\"libmtp_rules_end\"\n");
printf("\n");
break;
case style_udev_old:

0 comments on commit 1ff1a64

Please sign in to comment.