From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 13 Jan 2004 00:56:58 +0000 Subject: Re: udev and USB ID Message-Id: <20040113005658.GA5095@kroah.com> List-Id: References: <1073748412.5057.14.camel@t40> In-Reply-To: <1073748412.5057.14.camel@t40> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Jan 10, 2004 at 05:26:52PM +0200, Paul Ionescu wrote: > How can I put in /etc/udev/udev.rules something like > SYSFS_id="0c76:0005" ? SYSFS_idVendor="0c76", SYSFS_idProduct="0005" should work just fine. You can look for more than one sysfs attribute. > I tried last night udev, and is really great, but it took me one hour to > discover why it ignores the line SYSFS_vendor="OLYMPUS". > Well the good news is that udev was fine and not ignoring this line, BUT > the good guys at olympus made a joke and I had to put it > SYSFS_vendor="OLYMPUS " <- Yes with a trailing space. They put an extra > space at the end :( > And it was a pain to find it, I had to use strace on udev, just because > I didn't know any other choice. Dump the sysfs file through a hex dump program (like xxd). That trailing space is quite common for digital cameras for some reason (took me forever to figure it out too...) thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel