Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Sven Geggus <lists <at> fuchsschwanzdomain.de>
Subject: Re: New OWFS non-root access USB udev rule
Newsgroups: gmane.comp.file-systems.owfs.devel
Date: Friday 8th February 2008 14:03:56 UTC (over 10 years ago)
Jan Kandziora  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/
 
CD: 5ms