On 4/4/07, Mike Diehl <[EMAIL PROTECTED]> wrote:

My first try was a udev rule like:  (each on one line.)

BUS=="usb" SYMLINK="mouse_1"  SYSFS{manufacturer}=="Logitech"
PHYSDEVPATH=="*:00:02.0/usb2/2-9" OPTIONS+="last_rule"

BUS=="usb" SYMLINK="mouse_2"  SYSFS{manufacturer}=="Logitech"
PHYSDEVPATH=="*:00:02.0/usb2/2-10" OPTIONS+="last_rule"

I just happened to have read a webpage on writing udev rules yesterday:
    http://www.reactivated.net/writing_udev_rules.html
First, it looks like the udev rules are supposed to be separated by
comma, and second the symlink assignment key should use the += syntax.
I think your first rule should look like this:

BUS=="usb", SYMLINK+="mouse_1",  SYSFS{manufacturer}=="Logitech",
PHYSDEVPATH=="*:00:02.0/usb2/2-9", OPTIONS+="last_rule"

Other than this, I cannot verify the accuracy of any of your values.
When I get home I will see what my logitech mouse looks like in sysfs

Hope this helps,
--
ds
--
gentoo-user@gentoo.org mailing list

Reply via email to