summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2009-06-05 15:07:33 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2009-06-05 15:07:33 +0200
commiteeb632dc3cf4ca51650c15cb278c28b800883bd0 (patch)
tree32b9144e700d20a2a83710aeef12e868be1ee13e
parentd120c642f0be3ec0f7a089b1cd9f8cac1e610071 (diff)
udev-acl: Manage non-PTP libgphoto cameras
libgphoto supports a lot of old cameras which don't speak PTP yet and have a proprietary protocol. With a recent patch [1] libgphoto now creates udev rules which tag those with ID_GPHOTO2. Discussed on devkit-devel@ [2]. [1] https://sourceforge.net/tracker/?func=detail&aid=2801117&group_id=8874&atid=308874 [2] http://lists.freedesktop.org/archives/devkit-devel/2009-June/000191.html
-rw-r--r--udev-acl/70-acl.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/udev-acl/70-acl.rules b/udev-acl/70-acl.rules
index b062a63..2b47e96 100644
--- a/udev-acl/70-acl.rules
+++ b/udev-acl/70-acl.rules
@@ -7,6 +7,9 @@ ACTION!="add|change", GOTO="acl_apply"
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="", ENV{DEVTYPE}=="usb_device", IMPORT{program}="usb_id --export %p"
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", ENV{ACL_MANAGE}="1"
+# digicams with proprietary protocol
+ENV{ID_GPHOTO2}=="*?", ENV{ACL_MANAGE}="1"
+
# SCSI scanners
KERNEL=="sg[0-9]*", ATTRS{type}=="6", ENV{ACL_MANAGE}="1"
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP|EPSON|Epson", ENV{ACL_MANAGE}="1"