--- trunk/udev/udev.rules.magellan 2009/12/27 02:24:29 960 +++ trunk/udev/udev.rules.magellan 2009/12/27 02:27:13 961 @@ -1,5 +1,5 @@ # /etc/udev/rules/50-udev.rules: device naming rules for udev -# $Header: /root/magellan-cvs/src/udev/udev.rules.magellan,v 1.10 2009-10-13 10:46:20 niro Exp $ +# $Header: /root/magellan-cvs/src/udev/udev.rules.magellan,v 1.11 2009-12-27 02:27:13 niro Exp $ # # There are a number of modifiers that are allowed to be used in some # of the different fields. They provide the following subsitutions: @@ -79,6 +79,10 @@ SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp" KERNEL=="lp[0-9]*", GROUP="lp" KERNEL=="irlpt[0-9]*", GROUP="lp" +# hplip and cups 1.4+ use raw USB devices, so permissions should be similar to +# the ones from the old usblp kernel module +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p" +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}==":0701*:", GROUP="lp", MODE="660" # block SUBSYSTEM=="block", GROUP="disk"