SYSFS and ATTR for testing attributes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I have managed to play out with the rules of udev (my linux box is a
debian 5.0.0). When I use the ATTR{filename} to test over a value, the
test doesn't pass, if I use SYSFS{filename}, the test pass correctly.
Up to my knowledge, the SYSFS attribute isn't supported (or it isn't
anymore) because it isn't documented in the manpage nor in the help in
the help page (http://www.reactivated.net/writing_udev_rules.html).
This is the example i used to test with :
SUBSYSTEM=="usb_device", ATTR{idVendor}=="06bc",
ATTR{idProduct}=="01e1", MODE="0666", GROUP="scanner" => doesn't work
SUBSYSTEM=="usb_device",SYSFS{idVendor}=="06bc",
SYSFS{idProduct}=="01e1", MODE="0666", GROUP="scanner" => works
correctly

Any help would be welcome.
Thanks in advance.

PS : I'm new to the udev rules writing, and i can't find any
information about this after googling for more than 4hours strait, so
please no flames.

-- 
"I need a woman who can say, 'honey, can you please take a look at
this stack trace while I
order the pizza?' and really mean it."
Anonymous Software Developer
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux