chiark / gitweb /
keymap: move force-release directory
[elogind.git] / rules / rules.d / 60-persistent-serial.rules
1 # do not edit this file, it will be overwritten on update
2
3 ACTION!="add|change", GOTO="persistent_serial_end"
4 SUBSYSTEM!="tty", GOTO="persistent_serial_end"
5 KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*", GOTO="persistent_serial_end"
6
7 SUBSYSTEMS=="usb-serial", ENV{ID_PORT}="$attr{port_number}"
8
9 IMPORT="path_id %p"
10 ENV{ID_PATH}=="?*", ENV{ID_PORT}=="", SYMLINK+="serial/by-path/$env{ID_PATH}"
11 ENV{ID_PATH}=="?*", ENV{ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{ID_PORT}"
12
13 IMPORT="usb_id --export %p"
14 ENV{ID_SERIAL}=="", GOTO="persistent_serial_end"
15 SUBSYSTEMS=="usb", ENV{ID_IFACE}="$attr{bInterfaceNumber}"
16 ENV{ID_IFACE}=="", GOTO="persistent_serial_end"
17 ENV{ID_PORT}=="", SYMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_IFACE}"
18 ENV{ID_PORT}=="?*", SYMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_IFACE}-port$env{ID_PORT}"
19
20 LABEL="persistent_serial_end"