OLD | NEW |
1 /** | 1 /** |
2 * \file mtp-hotplug.c | 2 * \file mtp-hotplug.c |
3 * Program to create hotplug scripts. | 3 * Program to create hotplug scripts. |
4 * | 4 * |
5 * Copyright (C) 2005-2012 Linus Walleij <triad@df.lth.se> | 5 * Copyright (C) 2005-2012 Linus Walleij <triad@df.lth.se> |
6 * Copyright (C) 2006-2008 Marcus Meissner <marcus@jet.franken.de> | 6 * Copyright (C) 2006-2008 Marcus Meissner <marcus@jet.franken.de> |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 "GOTO=\"libmtp_rules_end\"\n\n" | 141 "GOTO=\"libmtp_rules_end\"\n\n" |
142 "LABEL=\"libmtp_usb_rules\"\n\n"); | 142 "LABEL=\"libmtp_usb_rules\"\n\n"); |
143 printf("# Some sensitive devices we surely don\'t wanna probe\n"); | 143 printf("# Some sensitive devices we surely don\'t wanna probe\n"); |
144 printf("# Color instruments\n"); | 144 printf("# Color instruments\n"); |
145 printf("ATTR{idVendor}==\"0670\", GOTO=\"libmtp_rules_end\"\n"); | 145 printf("ATTR{idVendor}==\"0670\", GOTO=\"libmtp_rules_end\"\n"); |
146 printf("ATTR{idVendor}==\"0765\", GOTO=\"libmtp_rules_end\"\n"); | 146 printf("ATTR{idVendor}==\"0765\", GOTO=\"libmtp_rules_end\"\n"); |
147 printf("ATTR{idVendor}==\"085c\", GOTO=\"libmtp_rules_end\"\n"); | 147 printf("ATTR{idVendor}==\"085c\", GOTO=\"libmtp_rules_end\"\n"); |
148 printf("ATTR{idVendor}==\"0971\", GOTO=\"libmtp_rules_end\"\n"); | 148 printf("ATTR{idVendor}==\"0971\", GOTO=\"libmtp_rules_end\"\n"); |
149 printf("# Canon scanners that look like MTP devices (PID 0x22nn)\n"); | 149 printf("# Canon scanners that look like MTP devices (PID 0x22nn)\n"); |
150 printf("ATTR{idVendor}==\"04a9\", ATTR{idProduct}==\"22*\", GOTO=\"libmtp_
rules_end\"\n"); | 150 printf("ATTR{idVendor}==\"04a9\", ATTR{idProduct}==\"22*\", GOTO=\"libmtp_
rules_end\"\n"); |
| 151 printf("# Canon digital camera (EOS 3D) that looks like MTP device (PID 0x
3113)\n"); |
| 152 printf("ATTR{idVendor}==\"04a9\", ATTR{idProduct}==\"3113\", GOTO=\"libmtp
_rules_end\"\n"); |
151 printf("# Sensitive Atheros devices that look like MTP devices\n"); | 153 printf("# Sensitive Atheros devices that look like MTP devices\n"); |
152 printf("ATTR{idVendor}==\"0cf3\", GOTO=\"libmtp_rules_end\"\n"); | 154 printf("ATTR{idVendor}==\"0cf3\", GOTO=\"libmtp_rules_end\"\n"); |
153 printf("# Sensitive Atmel JTAG programmers\n"); | 155 printf("# Sensitive Atmel JTAG programmers\n"); |
154 printf("ATTR{idVendor}==\"03eb\", GOTO=\"libmtp_rules_end\"\n"); | 156 printf("ATTR{idVendor}==\"03eb\", GOTO=\"libmtp_rules_end\"\n"); |
155 break; | 157 break; |
156 case style_udev_old: | 158 case style_udev_old: |
157 printf("# UDEV-style hotplug map for libmtp\n"); | 159 printf("# UDEV-style hotplug map for libmtp\n"); |
158 printf("# Put this file in /etc/udev/rules.d\n\n"); | 160 printf("# Put this file in /etc/udev/rules.d\n\n"); |
159 printf("ACTION!=\"add\", GOTO=\"libmtp_rules_end\"\n"); | 161 printf("ACTION!=\"add\", GOTO=\"libmtp_rules_end\"\n"); |
160 printf("ENV{MAJOR}!=\"?*\", GOTO=\"libmtp_rules_end\"\n"); | 162 printf("ENV{MAJOR}!=\"?*\", GOTO=\"libmtp_rules_end\"\n"); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 printf(" </match>\n"); | 266 printf(" </match>\n"); |
265 printf(" </device>\n"); | 267 printf(" </device>\n"); |
266 printf("</deviceinfo>\n"); | 268 printf("</deviceinfo>\n"); |
267 break; | 269 break; |
268 case style_usbids: | 270 case style_usbids: |
269 printf("\n"); | 271 printf("\n"); |
270 } | 272 } |
271 | 273 |
272 exit (0); | 274 exit (0); |
273 } | 275 } |
OLD | NEW |