On Tue, Aug 23, 2011 at 2:01 PM, Tom Gundersen <teg@xxxxxxx> wrote: > Ok, so that explains why you don't get your 11111 symlink, the > idVendor you are matching against is not on the device you want, but > on a parent. > > I honestly don't know the best way to match against two different > parents, which is apparently what you need. I guess something like > this should work though: > > SUBSYSTEM!="hidraw", GOTO="hidraw_end" > ATTRS{idVendor}!="c1ca", GOTO="hidraw_end" > ATTRS{serial}=="musb_hdrc", SYMLINK+="444444" > LABEL="hidraw_end" ... and for some reason the code above did not work. However, this ugly piece of code does. No idea what in wrong. SUBSYSTEMS == "hidraw" , GOTO = "blabla_1" GOTO = "blabla_end" LABEL = "blabla_1" ATTRS{idVendor} == "c1ca" , GOTO = "blabla_2" GOTO = "blabla_end" LABEL = "blabla_2" ATTRS{serial} == "musb_hdrc" , SYMLINK += "blabla-upper" ATTRS{serial} == "ehci-omap.0" , SYMLINK += "blabla-lower" LABEL = "blabla_end" -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html