On Thu, Aug 5, 2010 at 03:45, Philip Tait <philip@xxxxxxxx> wrote: > I have been trying to overcome the loss of the '%e' enumeration > variable to make a version of the Edgeport rules that will work with > the current version of Udev. > > Old version: > > BUS="usb" SYSFS{idVendor}="1608" SYSFS{idProduct}=="0244" > SYSFS{serial}=="*-0" NAME="%k" SYMLINK="ttyEDGE8_0_%e" > BUS="usb" SYSFS{idVendor}="1608" SYSFS{idProduct}=="0244" > SYSFS{serial}=="*-1" NAME="%k" SYMLINK="ttyEDGE8_1_%e" > > Replacing it with '%m" doesn't work, because then the numbering is > dependent on the presence of other USB-serial devices. > > I tried this: > > ENV{portnum}=ATTRS{port_number} > BUS=="usb",SYSFS{idVendor}=="1608",SYSFS{idProduct}=="0244",SYSFS{serial}=="I01846004-0", > NAME="%k",SYMLINK="ttyEDGE8_%E{portnum}"` > BUS=="usb",SYSFS{idVendor}=="1608",SYSFS{idProduct}=="0244",SYSFS{serial}=="I01846004-1", > NAME="%k",SYMLINK="ttyEDGE8_%E{portnum}"` > BUS=="usb",SYSFS{idVendor}=="1608",SYSFS{idProduct}=="0244",SYSFS{serial}=="I01846004-2", > NAME="%k",SYMLINK="ttyEDGE8_%E{portnum}"` > BUS=="usb",SYSFS{idVendor}=="1608",SYSFS{idProduct}=="0244",SYSFS{serial}=="I01846004-3", > NAME="%k",SYMLINK="ttyEDGE8_%E{portnum}"` > > but this didn't work, I think because the 'port_number' attribute is > defined at a different hierarchical level than the 'serial' attribute: I guess that's all covered by the standard: /dev/serial/by-*/. Kay -- 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