Magellan Linux

Diff of /tags/udev-162-r1/udev-persistent-serial.rules.magellan

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 762 by niro, Fri Apr 24 14:20:02 2009 UTC revision 1088 by niro, Wed Aug 18 02:24:13 2010 UTC
# Line 1  Line 1 
1  # /etc/udev/rules/60-persistent-serial.rules:  device naming rules for udev  # /etc/udev/rules/60-persistent-serial.rules:  device naming rules for udev
2  # $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 $
3  #  #
4  # There are a number of modifiers that are allowed to be used in some  # There are a number of modifiers that are allowed to be used in some
5  # of the different fields. They provide the following subsitutions:  # of the different fields. They provide the following subsitutions:
# Line 18  Line 18 
18  # file that can be run before this one.  # file that can be run before this one.
19  #  #
20    
21  ACTION!="add|change", GOTO="persistent_serial_end"  ACTION=="remove", GOTO="persistent_serial_end"
22  SUBSYSTEM!="tty", GOTO="persistent_serial_end"  SUBSYSTEM!="tty", GOTO="persistent_serial_end"
23  KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*", GOTO="persistent_serial_end"  KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*", GOTO="persistent_serial_end"
24    
25  SUBSYSTEMS=="usb-serial", ENV{ID_PORT}="$attr{port_number}"  SUBSYSTEMS=="usb-serial", ENV{ID_PORT}="$attr{port_number}"
26    
27  IMPORT="path_id"  IMPORT="path_id %p"
28  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}"
29  ENV{ID_PATH}=="?*", ENV{ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{ID_PORT}"  ENV{ID_PATH}=="?*", ENV{ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{ID_PORT}"
30    

Legend:
Removed from v.762  
changed lines
  Added in v.1088