2024-09-29 10:22:50 -07:00
|
|
|
# Author : Gaston Gonzalez
|
|
|
|
|
# Date : 29 September 2024
|
2024-10-14 08:10:54 -07:00
|
|
|
# Updated : 14 October 2024
|
2024-09-29 10:22:50 -07:00
|
|
|
# Purpose : udev rules for the Icom IC-7200
|
|
|
|
|
#
|
|
|
|
|
# Preconditions:
|
|
|
|
|
# 1. IC-7200 connected via USB cable
|
|
|
|
|
#
|
|
|
|
|
# Postconditions:
|
|
|
|
|
# 1. /dev/et-cat created
|
2024-10-14 08:10:54 -07:00
|
|
|
# 2. rigctld started
|
2024-09-29 10:22:50 -07:00
|
|
|
|
|
|
|
|
KERNEL=="ttyUSB[0-9]*", SUBSYSTEM=="tty", ATTRS{serial}=="IC-7200*", \
|
|
|
|
|
ENV{ET_DEVICE}="IC-7200"
|
|
|
|
|
|
|
|
|
|
# Create consistent device name/path for the CAT serial device
|
2024-09-29 10:59:55 -07:00
|
|
|
# Prevent the gpsd system unit from incorrectly flagging this as a GPS device
|
2024-09-29 10:22:50 -07:00
|
|
|
ENV{ET_DEVICE}=="IC-7200", SUBSYSTEMS=="usb", ATTRS{idVendor}=="10c4" ATTRS{idProduct}=="ea60", \
|
|
|
|
|
ACTION=="add", \
|
2024-09-29 10:59:55 -07:00
|
|
|
ENV{SYSTEMD_WANTS}="", \
|
2024-10-14 08:10:54 -07:00
|
|
|
ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \
|
|
|
|
|
RUN+="/usr/bin/systemctl start rigctld"
|
2024-09-29 10:22:50 -07:00
|
|
|
|
|
|
|
|
# TODO: Add rules for sound card
|