-
-
Save yanaviweber/2831ba0f206c14d2a2041c7de53d1331 to your computer and use it in GitHub Desktop.
Use static names for USB devices for Raspberry Pi 3. (ttyUSBUpperLeft, ttyUSBLowerLeft, ttyUSBUpperRight, ttyUSBLowerLeft)
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
| cat > "/etc/udev/rules.d/99-human_readable_usb.rules" << EOF_USB_RULES | |
| SUBSYSTEM=="tty", ENV{ID_PATH}=="platform-3f980000.usb-usb-0:1.2:1.0", SYMLINK+="ttyUSBUpperLeft" | |
| SUBSYSTEM=="tty", ENV{ID_PATH}=="platform-3f980000.usb-usb-0:1.3:1.0", SYMLINK+="ttyUSBLowerLeft" | |
| SUBSYSTEM=="tty", ENV{ID_PATH}=="platform-3f980000.usb-usb-0:1.4:1.0", SYMLINK+="ttyUSBUpperRight" | |
| SUBSYSTEM=="tty", ENV{ID_PATH}=="platform-3f980000.usb-usb-0:1.5:1.0", SYMLINK+="ttyUSBLowerLeft" | |
| EOF_USB_RULES | |
| udevadm control --reload-rules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment