mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
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:
@@ -1,6 +1,6 @@
|
|||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 28 September 2024
|
# Date : 28 September 2024
|
||||||
# Updated : 9 October 2024
|
# Updated : 10 October 2024
|
||||||
# Purpose : udev rules for the Icom IC-705
|
# Purpose : udev rules for the Icom IC-705
|
||||||
#
|
#
|
||||||
# Preconditions:
|
# 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", \
|
ENV{ET_SUBDEVICE}="GPS", GROUP="dialout", MODE="0660", SYMLINK+="et-gps", \
|
||||||
RUN+="/usr/bin/systemctl start rigctld"
|
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
|
# TODO: Add rules for sound card
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ start() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check if rigctld is already running
|
# Check if rigctld is already running
|
||||||
ps -ef | grep [r]igctld
|
ps -ef | grep [r]igctld
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
PID=$(ps -ef | grep [r]igctld | awk '{print $2}')
|
PID=$(ps -ef | grep [r]igctld | awk '{print $2}')
|
||||||
et-log "Rig control is already running with process ID: ${PID}. Killing it now..."
|
et-log "Rig control is already running with process ID: ${PID}."
|
||||||
kill -9 ${PID}
|
#kill -9 ${PID}
|
||||||
sleep 1
|
#sleep 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Grab rigctld values from active radio configuration
|
# Grab rigctld values from active radio configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user