Files
emcomm-tools-os-community/overlay/etc/udev/rules.d/82-et-ic7100.rules
T
2024-10-12 17:23:51 -07:00

36 lines
1.3 KiB
Plaintext

# Author : Gaston Gonzalez
# Author : William McKeehan (https://github.com/mckeehan)
# Date : 30 September 2024
# Updated : 12 October 2024
# Purpose : udev rules for the Icom IC-7100
#
# Preconditions:
# 1. TODO: Document GPS settings for IC-7100 (Mike KC8OWL)
# 2. GPS antenna connected to IC-7100
# 3. IC-7200 connected via USB cable
#
# Postconditions:
# 1. /dev/et-cat created
# 2. /dev/et-gps created
# 3. rigctld is started
KERNEL=="ttyUSB[0-9]*", SUBSYSTEM=="tty", ATTRS{serial}=="IC-7100*", \
ENV{ET_DEVICE}="IC-7100"
# Create consistent device name/path for the CAT serial device
# Unset the incorrect flagging of this being a GPS device.
ENV{ET_DEVICE}=="IC-7100", SUBSYSTEMS=="usb", ATTRS{serial}=="IC-7100*A", \
ACTION=="add", \
ENV{SYSTEMD_WANTS}="", \
ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \
RUN+="/usr/bin/systemctl start rigctld"
# Create consistent device name/path for the GPS serial device
ENV{ET_DEVICE}=="IC-7100", SUBSYSTEMS=="usb", ATTRS{serial}=="IC-7100*B", \
ACTION=="add", \
ENV{ET_SUBDEVICE}="GPS", GROUP="dialout", MODE="0660", SYMLINK+="et-gps", \
RUN+="/opt/emcomm-tools/sbin/wrapper-gpsd.sh start"
# TODO: Add rules for ACTION="remove"
# TODO: Add rules for sound card