sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Bas van Gils <Bas.vanGils AT cs.kun.nl>
- To: Discuss-list <sm-discuss AT lists.ibiblio.org>
- Subject: [SM-Discuss] udev rules
- Date: Sat, 19 Jun 2004 19:44:54 +0200
Hi all,
Today I switched from devfsd to udev. Having read [1] I figured it wouldn't
be too hard to write my own udev rules for my photo cameras. So, I started
with my old camera first. After plugging in the camera I quickly found out it
was on /dev/sda1. Then I proceeded as follows:
The command "udevinfo -q path -n /dev/sda" gave me "/block/sda"
Looking at the output of "udevinfo -a -p /sys/block/sda/" I found:
BUS="usb"
ID="2-1"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}="100mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0100"
SYSFS{bmAttributes}="c0"
SYSFS{detach_state}="0"
SYSFS{devnum}="5"
SYSFS{idProduct}="0102"
SYSFS{idVendor}="07b4"
SYSFS{manufacturer}="OLYMPUS"
SYSFS{maxchild}="0"
SYSFS{product}="C150,D390"
SYSFS{serial}="S401002027"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"
Following the line of reasoning in the howto, I made a 10-local.rules and used
the following rule:
BUS="usb", SYSFS{serial}="S401002027", NAME="%k", SYMLINK="olympus"
As you might have guessed by now, this didn't work... otherwise I wouldn't
have to post here :-) Any clue on what I'm doing wrong? Hints?
Cheers
Bas
[1] http://www.reactivated.net/udevrules.php
--
drs. Bas van Gils <Bas.vanGils AT cs.kun.nl> | /(bb|[^b]{2})/
http://www.cs.kun.nl/~basvg | that's the question
PGP = 3805 664A F24E 90D5 6A77 C624 E13D 0440 2768 A493 |
Attachment:
pgpAFYF6qTM1c.pgp
Description: PGP signature
-
[SM-Discuss] udev rules,
Bas van Gils, 06/19/2004
- Re: [SM-Discuss] udev rules, Bas van Gils, 06/20/2004
Archive powered by MHonArc 2.6.24.