[solver] Re: Udev script not working

Matthias Kirschner mk at fsfe.org
Sun Jul 2 11:06:12 CEST 2006


Hi Mark,

* Mark Brown <broonie at sirena.org.uk> [2006-06-30 11:43:38 +0100]:

> Yes, that should be all you need (modulo the quotes which seem to have
> got messed up, probably at the point where I posted the rules on the
> web).
> 
> > Should I add the above to /etc/udev/udev.rules and remove this three
> > rules?
> 
> You shouldn't need anything except the above rules to get the
> permissions set on the nodes for the card reader so anything else you
> added for it could be removed.

It worked, I added the following to /etc/udev/udev.rules and restarted
udev.

[...]

# USB devices

SUBSYSTEM=="usb_device", SYSFS{idVendor}=="04e6", SYSFS{idProduct}=="e003", GROUP="scard", MODE="0664"
SUBSYSTEM=="usb_device", SYSFS{bDeviceClass}=="0??0B", GROUP="scard", MODE="0664"
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="04e6", SYSFS{idProduct}=="5115", GROUP="scard", MODE="0664"

BUS=="usb", KERNEL=="auer[0-9]*",	NAME="usb/%k"
BUS=="usb", KERNEL=="cpad[0-9]*",	NAME="usb/%k"
BUS=="usb", KERNEL=="dabusb*",		NAME="usb/%k"
BUS=="usb", KERNEL=="hiddev*",		NAME="usb/%k"
BUS=="usb", KERNEL=="legousbtower*",	NAME="usb/%k"
BUS=="usb", KERNEL=="lp[0-9]*",		NAME="usb/%k"
BUS=="usb", KERNEL=="ttyUSB*", \
	SYSFS{product}=="Palm Handheld*|Handspring Visor", \
					SYMLINK+="pilot"

# usbfs-like devices
SUBSYSTEM=="usb_device",	PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", \
				NAME="%c"

[...]

Thank you very much,
Matze

-- 
Join the Fellowship and protect your freedom!      (http://www.fsfe.org)



More information about the Gnupg-devel mailing list