Comment 29 for bug 281335

Revision history for this message
Sergiu Bivol (sergiu-bivol) wrote :

Well, maybe they should match, but they don't. Actually, *none* of them matches.
Instead, this works:

SUBSYSTEMS=="usb", ATTRS{bDeviceClass}=="00|ff", ATTRS{bDeviceSubClass}=="00|ff", GOTO="mobile_action_switch"

All of the above checks match, and the ZeroCD is being ejected. Please note that I used "SUBSYSTEMS" and "ATTRS" instead of the default "SUBSYSTEM" and "ATTR".

Unfortunately, I have no idea how to fix the fourth check, ENV{DEVTYPE}=="usb_device", so I have removed it.