| 1234567891011121314151617181920212223242526272829 |
- # 99-hth-controller.rules.template
- #
- # Do NOT invent USB idVendor / idProduct / serial.
- # This repository has no captured hardware IDs.
- #
- # On a machine with the real USB-UART adapter plugged in:
- #
- # udevadm info -a -n /dev/ttyUSB0
- # udevadm info -q property -n /dev/ttyUSB0
- #
- # Copy ATTRS{idVendor}, ATTRS{idProduct}, and ATTRS{serial} (if present)
- # into the rule below. Prefer serial + VID/PID over "the first ttyUSB".
- # Optionally match ATTRS{devpath} / kernel USB port path for stable seating.
- #
- # Install the filled file as:
- # /etc/udev/rules.d/99-hth-controller.rules
- # Then:
- # sudo udevadm control --reload-rules
- # sudo udevadm trigger
- #
- # Expected symlink: /dev/hth/controller0
- # Production hthd.serial.yaml should use that path, not /dev/ttyUSB0.
- # ACTION=="add", SUBSYSTEM=="tty", \
- # ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="YYYY", ATTRS{serial}=="ZZZZ", \
- # SYMLINK+="hth/controller0", GROUP="hth", MODE="0660", TAG+="uaccess"
- # Placeholder line kept commented so an unfinished copy cannot match every tty:
- # KERNEL=="ttyUSB*", ATTRS{idVendor}=="REPLACE_VID", ATTRS{idProduct}=="REPLACE_PID", SYMLINK+="hth/controller0"
|