udevの物理パス情報決意装置

副経路生成udevのパス、これはに応じて判断することができます

[toybrick @ localhostのDEV] $見つけます| grepのプラットフォームfe3c0000
./disk/by-path/platform-fe3c0000.usb-usb-0:1.2:1.0-scsi-0:0:0:0-part1
./disk/by-path/platform-fe3c0000.usb -USB-0:1.2:1.0-SCSI-0:0:0:0
./input/by-path/platform-fe3c0000.usb-usb-0:1.1:1.0-event-mouse
./input/by-path /platform-fe3c0000.usb-usb-0:1.3:1.0-event-kbd
[toybrick @ localhostのDEV] $見つけます| grepのプラットフォームfe380000
./serial/by-path/platform-fe380000.usb-usb-0:1.3:1.0-port0
./serial/by-path/platform-fe380000.usb-usb-0:1.2:1.0-port0
./serial/by-path/platform-fe380000.usb-usb-0:1.1:1.0-port0

おすすめ

転載: www.cnblogs.com/cute/p/11325250.html