Linux/udev

From Omnia
Revision as of 22:04, 15 January 2020 by Kenneth (talk | contribs) (→‎Add persistent label)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

notes

http://ubuntuforums.org/showpost.php?p=4765153&postcount=28:

udevinfo -a -p $(udevinfo -q path -n /dev/sdX)

Add persistent label

Find device details:

udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0) | less

You can only use attributes from one parent and one child node.

Quarch

/etc/udev/rules.d/99-sndk.rules
SUBSYSTEM=="tty", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", SYMLINK+="quarch"

Will create /dev/quarch