mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
28 lines
989 B
Plaintext
28 lines
989 B
Plaintext
# Author : Gaston Gonzalez
|
|
# Date : 12 October 2024
|
|
# Updated : 10 November 2024
|
|
# Purpose : udev rules for the QRP Labs QMX
|
|
#
|
|
# Preconditions:
|
|
# 1. QMX connected via USB cable
|
|
#
|
|
# Postconditions:
|
|
# 1. /dev/et-cat created
|
|
# 2. /dev/et-audio created
|
|
# 3. rigctld started
|
|
|
|
# Detect ET_DEVICE early and use for rules that follow
|
|
KERNEL=="ttyACM[0-9]*", SUBSYSTEM=="tty", ATTRS{product}=="QMX*", \
|
|
ENV{ET_DEVICE}="QMX"
|
|
|
|
# Create consistent device name/path for the CAT serial device
|
|
ENV{ET_DEVICE}=="QMX", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a34c", \
|
|
ACTION=="add", \
|
|
ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \
|
|
RUN+="/usr/bin/systemctl start rigctld"
|
|
|
|
SUBSYSTEM=="sound", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a34c", ATTRS{manufacturer}=="QRP Labs", ENV{ET_DEVICE}=="", \
|
|
ACTION=="add", \
|
|
ATTR{id}="ET_AUDIO", \
|
|
ENV{ET_DEVICE}="QMX", ENV{ET_SUBDEVICE}="AUDIO", GROUP="audio", MODE="0660", SYMLINK+="et-audio"
|