mirror of
https://github.com/AG7GN/nexus-utilities.git
synced 2025-05-20 00:10:11 -07:00
Fixed bug in dw_aprs_gui.sh that prevented script from restarting
This commit is contained in:
parent
6e96efd663
commit
0907f54e81
@ -16,7 +16,7 @@
|
||||
#%
|
||||
#================================================================
|
||||
#- IMPLEMENTATION
|
||||
#- version ${SCRIPT_NAME} 1.0.1
|
||||
#- version ${SCRIPT_NAME} 1.0.3
|
||||
#- author Steve Magnuson, AG7GN
|
||||
#- license CC-BY-SA Creative Commons License
|
||||
#- script_id 0
|
||||
@ -350,10 +350,6 @@ CONFIG_TAB_TEXT="<b><big><big>Direwolf APRS Configuration</big></big></b>\n \
|
||||
ID="${RANDOM}"
|
||||
|
||||
RETURN_CODE=0
|
||||
# Have direwolf allocate a pty
|
||||
#DIREWOLF="$(command -v direwolf) -p -t 0 -d u"
|
||||
# No pty
|
||||
DIREWOLF="$(command -v direwolf) -t 0 -d u"
|
||||
|
||||
PIPE=$TMPDIR/pipe
|
||||
mkfifo $PIPE
|
||||
@ -473,24 +469,34 @@ $SYNTAX && set -n
|
||||
# Run in debug mode, if set
|
||||
$DEBUG && set -x
|
||||
|
||||
timeStamp &
|
||||
timeStamp_PID=$!
|
||||
|
||||
timeStamp_PID=""
|
||||
direwolf_PID=""
|
||||
YAD_PIDs=()
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
# Have direwolf allocate a pty
|
||||
#DIREWOLF="$(command -v direwolf) -p -t 0 -d u"
|
||||
# No pty
|
||||
DIREWOLF="$(command -v direwolf) -t 0 -d u"
|
||||
|
||||
# Kill any running processes and load latest settings
|
||||
killDirewolf $direwolf_PID
|
||||
for P in ${YAD_PIDs[@]}
|
||||
for P in ${YAD_PIDs[@]} $timeStamp_PID
|
||||
do
|
||||
ps x | egrep -q "^$P" && kill $P
|
||||
done
|
||||
rm -f $TMPDIR/CONFIGURE_APRS.txt
|
||||
|
||||
# Retrieve saved settings or defaults if there are no saved settings
|
||||
loadSettings $CONFIG_FILE
|
||||
YAD_PIDs=()
|
||||
|
||||
# Start the Time Stamper function
|
||||
timeStamp &
|
||||
timeStamp_PID=$!
|
||||
|
||||
# Start the monitor tab
|
||||
[[ $FIRST_RUN == true ]] && MODE_MESSAGE="" || MODE_MESSAGE="${F[_APRSMODE_]}"
|
||||
TEXT="<big><b>Direwolf $MODE_MESSAGE APRS Monitor</b></big>"
|
||||
|
@ -1 +1 @@
|
||||
VERSION="2.3.3"
|
||||
VERSION="2.3.4"
|
Loading…
x
Reference in New Issue
Block a user