PnP - Disabled kill command rigtctld wrapper. Temporarily enabled a very generic remove action in the 705 udev rules to stop the rigctld systemd unit

This commit is contained in:
Gaston Gonzalez
2024-10-10 06:12:20 -07:00
parent 449a9598c7
commit 88b003d01a
2 changed files with 8 additions and 5 deletions
+4 -1
View File
@@ -1,6 +1,6 @@
# Author : Gaston Gonzalez
# Date : 28 September 2024
# Updated : 9 October 2024
# Updated : 10 October 2024
# Purpose : udev rules for the Icom IC-705
#
# Preconditions:
@@ -31,4 +31,7 @@ ENV{ET_DEVICE}=="IC-705", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="02", \
ENV{ET_SUBDEVICE}="GPS", GROUP="dialout", MODE="0660", SYMLINK+="et-gps", \
RUN+="/usr/bin/systemctl start rigctld"
# TODO make more specific
SUBSYSTEM=="tty", ACTION=="remove", RUN+="/usr/bin/systemctl stop rigctld"
# TODO: Add rules for sound card
@@ -37,13 +37,13 @@ start() {
exit 1
fi
# check if rigctld is already running
# Check if rigctld is already running
ps -ef | grep [r]igctld
if [ $? -eq 0 ]; then
PID=$(ps -ef | grep [r]igctld | awk '{print $2}')
et-log "Rig control is already running with process ID: ${PID}. Killing it now..."
kill -9 ${PID}
sleep 1
et-log "Rig control is already running with process ID: ${PID}."
#kill -9 ${PID}
#sleep 1
fi
# Grab rigctld values from active radio configuration