tty?这个是改不了的,是可以写udev规则建立一个固定命名的符号链接
这是我的规则,供参考:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="AC00ISQ7", SYMLINK+="dp-sw-right"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="AC00HES1", SYMLINK+="dp-sw-middle"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="AQ03QZWO", SYMLINK+="dp-sw-left"
#DEVPATH=="/devices/pci0000:00/0000:00:08.1/0000:23:00.3/usb11/11-4/11-4:1.0/ttyUSB?/tty/ttyUSB?", SYMLINK+="dp-sw-left"
#DEVPATH=="/devices/pci0000:00/0000:00:01.2/0000:04:00.0/0000:05:08.0/0000:18:00.1/usb7/7-3/7-3:1.0/ttyUSB?/tty/ttyUSB?", SYMLINK+="dp-sw-middle"
#DEVPATH=="/devices/pci0000:00/0000:00:01.2/0000:04:00.0/0000:05:08.0/0000:18:00.1/usb7/7-2/7-2:1.0/tty/ttyACM?", SYMLINK+="dp-sw-right"
前3行是基于序列号的固定,后面几行是基于设备路径固定的。后面这种情形的话,只要保持插的u口不变,符号链接就不变。
--
FROM 221.220.49.*