Created
November 4, 2022 19:02
-
-
Save ericwoud/d5d81853a71a3930c895cba09d0ec202 to your computer and use it in GitHub Desktop.
Create symlinks /dev/hidraw/by-id/xxxxx and /dev/hidraw/by-path/xxxxx for all hidraw devices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/udev/rules.d/79-hidraw-by-id-and-by-path.rules | |
| # Create symlinks /dev/hidraw/by-id/xxxxx and /dev/hidraw/by-path/xxxxx | |
| ACTION!="add", GOTO="hidraw-by-id-and-by-path-end" | |
| SUBSYSTEM!="hidraw", GOTO="hidraw-by-id-by-path-end" | |
| IMPORT{builtin}="usb_id" | |
| ENV{ID_SERIAL}=="?*", SYMLINK+="hidraw/by-id/$env{ID_BUS}-$env{ID_SERIAL}" | |
| IMPORT{builtin}="path_id" | |
| ENV{ID_PATH}=="?*", SYMLINK+="hidraw/by-path/$env{ID_PATH}" | |
| LABEL="hidraw-by-id-and-by-path-end" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment