diff options
Diffstat (limited to 'packaging/generic')
-rw-r--r-- | packaging/generic/print-camera-list.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c index 5a584ed40..02cb253c9 100644 --- a/packaging/generic/print-camera-list.c +++ b/packaging/generic/print-camera-list.c @@ -645,12 +645,21 @@ udev_camera_func2 (const func_params_t *params, const CameraAbilities *a, void *data) { + int has_valid_rule = 0; udev_persistent_data_t *pdata = (udev_persistent_data_t *) data; ASSERT(pdata != NULL); if (a->port & GP_PORT_USB_DISK_DIRECT) { printf (pdata->usbdisk_string, "sd[a-z]*", a->usb_vendor, a->usb_product); + has_valid_rule = 1; + } + if (a->port & GP_PORT_USB_SCSI) { + printf (pdata->usbdisk_string, "sg[0-9]*", + a->usb_vendor, a->usb_product); + has_valid_rule = 1; + } + if (has_valid_rule != 0) { if (pdata->script != NULL || pdata->mode != NULL || pdata->owner != NULL || pdata->group != NULL) printf(", "); |