Add access rules for Linux.

This commit is contained in:
Serge Vakulenko 2018-09-21 12:17:23 -07:00
parent 4572b10077
commit 72f7e1b972
2 changed files with 30 additions and 0 deletions

12
99-dmr.rules Normal file
View File

@ -0,0 +1,12 @@
#
# Enable user access to USB devices of DMR radios.
# Install this file into directory: /etc/udev/rules.d
# To reload the rules, use:
# sudo udevadm control --reload-rules
#
# TYT MD-UV380
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="666"
# Baofeng RD-5R
SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="666"

View File

@ -42,6 +42,24 @@ Update database of contacts from CSV file:
Option -t enables tracing of USB protocol. Option -t enables tracing of USB protocol.
## Permissions
On Linux, a permission to access USB device is required.
It's possible to run dmrconfig as root, like "sudo dmrconfig",
but it's safer to enable access for users.
Create a file /etc/udev/rules.d/99-dmr.rules with the following contents:
# TYT MD-UV380
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="666"
# Baofeng RD-5R
SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="666"
To activate it, run:
sudo udevadm control --reload-rules
Then re-attach the USB cable to the radio.
## Sources ## Sources