meta-sysmocom-bsp/recipes-bsp/odu-static-devicenames/files/odu-persistens-serial.rules

24 lines
931 B
Plaintext

# do not edit this file, it will be overwritten on update
ACTION=="remove", GOTO="odu_persistent_serial_end"
SUBSYSTEM!="tty", GOTO="odu_persistent_serial_end"
KERNEL!="ttyACM[0-9]*", GOTO="odu_persistent_serial_end"
KERNELS=="1-1.2:1.0", SYMLINK+="ttyModemScan0"
KERNELS=="1-1.2:1.2", SYMLINK+="ttyModemScan1"
KERNELS=="1-1.2:1.4", SYMLINK+="ttyModemScan2"
KERNELS=="1-1.2:1.6", SYMLINK+="ttyModemScan3"
KERNELS=="1-1.2:1.8", SYMLINK+="ttyModemScan4"
KERNELS=="1-1.2:1.10", SYMLINK+="ttyModemScan5"
KERNELS=="1-1.2:1.12", SYMLINK+="ttyModemScan6"
KERNELS=="1-1.3:1.0", SYMLINK+="ttyModemUplink0"
KERNELS=="1-1.3:1.2", SYMLINK+="ttyModemUplink1"
KERNELS=="1-1.3:1.4", SYMLINK+="ttyModemUplink2"
KERNELS=="1-1.3:1.6", SYMLINK+="ttyModemUplink3"
KERNELS=="1-1.3:1.8", SYMLINK+="ttyModemUplink4"
KERNELS=="1-1.3:1.10", SYMLINK+="ttyModemUplink5"
KERNELS=="1-1.3:1.12", SYMLINK+="ttyModemUplink6"
LABEL="odu_persistent_serial_end"