kopia lustrzana https://github.com/open-ham/OpenGD77
22 wiersze
1.1 KiB
Plaintext
22 wiersze
1.1 KiB
Plaintext
# USB rules for GD-77
|
|
# Place this in /etc/udev/rules.d/ to let all users talk to the radios by USB.
|
|
|
|
#
|
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="0666", GROUP="plugdev"
|
|
|
|
# HIDAPI/libusb
|
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="0666", GROUP="plugdev"
|
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0094", MODE="0666", GROUP="plugdev"
|
|
|
|
# HIDAPI/hidraw
|
|
KERNEL=="hidraw*", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="0666", GROUP="plugdev"
|
|
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0094", MODE="0666", GROUP="plugdev"
|
|
|
|
# HIDAPI/hiddev
|
|
## We need to unbind this device, otherwise LibUsb will fail to SetConfiguration() and ClaimInterface()
|
|
# For Bootloader (usbhid)
|
|
KERNEL=="hiddev*", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="0666", GROUP="plugdev", RUN+="/bin/bash -c 'ID=$(IFS=/; read -a array <<< %p; echo ${array[-3]}); echo $ID > /sys/bus/usb/drivers/usbhid/unbind'"
|
|
|
|
# OpenGD77
|
|
KERNEL=="ttyACM[0-9]*", SUBSYSTEM=="tty", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0094", MODE="0666", GROUP="dialout", SYMLINK+="OpenGD77"
|