Jan Kandziora <[EMAIL PROTECTED]> wrote:
> It seems the config syntax of udev has changed again. However, I came up
> with a much simpler solution: I set up a file
> /etc/udev/rules.d/46-ds2490.rules with the line
>
> SUBSYSTEMS=="usb", ATTRS{idVendor}=="04fa", ATTRS{idProduct}=="2490",
> PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i
> $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="ow", MODE="0664"
>
> No helper script neccessary, this line is enough to make it work. Tested
> with udev-103-12 of openSuSE 10.2.
Hm, does not look simple enough to me!
Im using this one:
--cut--
~/ # cat /etc/udev/rules.d/owfs.rules
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="owfs_rules_end"
# DS2490 1-Wire adapter
SYSFS{idVendor}=="04fa", SYSFS{idProduct}=="2490", MODE="660", GROUP="owfs"
LABEL="owfs_rules_end"
--cut--
This works fine using udev 0.105 on debian etch. This might however be
Debian specific.
Sven
--
C is quirky, flawed, and an enormous success
(Dennis M. Ritchie)
/me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers