From 98f34a73fdba536041618eba7a0fb7fb3bb2359c Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 11 Jun 2014 06:00:06 +0000 Subject: added generic ptp line git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15004 67ed7778-7388-44ab-90cf-0a291f65f57c --- packaging/generic/print-camera-list.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packaging') diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c index 8c8db12b1..3ead13596 100644 --- a/packaging/generic/print-camera-list.c +++ b/packaging/generic/print-camera-list.c @@ -428,6 +428,10 @@ udev_parse_params (const func_params_t *params, void **data) /* UDEV_201 ... regular stuff is done via hwdb, only scsi generic here. */ "ACTION!=\"add\", GOTO=\"libgphoto2_rules_end\"\n" "SUBSYSTEM!=\"usb\", GOTO=\"libgphoto2_usb_end\"\n" + "ENV{ID_USB_INTERFACES}==\"\", IMPORT{builtin}=\"usb_id\"\n" + /* shortcut the most common camera driver, ptp class, so we avoid parsing 1000 + * more rules . It will be completed in udev_begin_func() */ + "ENV{ID_USB_INTERFACES}==\"*:060101:*\", ENV{ID_GPHOTO2}=\"1\", ENV{GPHOTO2_DRIVER}=\"PTP\", ", }; static const char * const usbcam_strings[] = { /* UDEV_PRE_0_98 */ -- cgit v1.2.1