--- trunk/udev/udev-persistent-serial.rules.magellan 2009/04/24 14:20:02 762 +++ trunk/udev/udev-persistent-serial.rules.magellan 2010/08/18 02:24:13 1088 @@ -1,5 +1,5 @@ # /etc/udev/rules/60-persistent-serial.rules: device naming rules for udev -# $Header: /root/magellan-cvs/src/udev/udev-persistent-serial.rules.magellan,v 1.1 2009-04-24 14:20:02 niro Exp $ +# $Header: /root/magellan-cvs/src/udev/udev-persistent-serial.rules.magellan,v 1.3 2010-08-18 02:24:12 niro Exp $ # # There are a number of modifiers that are allowed to be used in some # of the different fields. They provide the following subsitutions: @@ -18,13 +18,13 @@ # file that can be run before this one. # -ACTION!="add|change", GOTO="persistent_serial_end" +ACTION=="remove", GOTO="persistent_serial_end" SUBSYSTEM!="tty", GOTO="persistent_serial_end" KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*", GOTO="persistent_serial_end" SUBSYSTEMS=="usb-serial", ENV{ID_PORT}="$attr{port_number}" -IMPORT="path_id" +IMPORT="path_id %p" ENV{ID_PATH}=="?*", ENV{ID_PORT}=="", SYMLINK+="serial/by-path/$env{ID_PATH}" ENV{ID_PATH}=="?*", ENV{ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{ID_PORT}"