1
0
mirror of https://github.com/AG7GN/nexus-utilities.git synced 2025-05-16 14:40:09 -07:00

Fix config.json file location

This commit is contained in:
Steve Magnuson 2021-11-09 09:37:32 -08:00
parent cec333b746
commit 534b521653

View File

@ -15,7 +15,7 @@
#% #%
#================================================================ #================================================================
#- IMPLEMENTATION #- IMPLEMENTATION
#- version ${SCRIPT_NAME} 1.8.2 #- version ${SCRIPT_NAME} 1.8.3
#- author Steve Magnuson, AG7GN #- author Steve Magnuson, AG7GN
#- license CC-BY-SA Creative Commons License #- license CC-BY-SA Creative Commons License
#- script_id 0 #- script_id 0
@ -30,6 +30,9 @@
# traffic logged events & modem # traffic logged events & modem
# options expanded to # options expanded to
# 300,1200,2400,4800,9600 # 300,1200,2400,4800,9600
# 20211109 : Steve Magnuson : Accomodate new config.json
# location for pat versions
# of 0.12 and later
# #
#================================================================ #================================================================
# DEBUG OPTION # DEBUG OPTION
@ -279,7 +282,8 @@ ID="${RANDOM}"
AX25PORT="wl2k" AX25PORT="wl2k"
AX25PORTFILE="/etc/ax25/axports" AX25PORTFILE="/etc/ax25/axports"
PAT_CONFIG="$HOME/.wl2k/config.json" PAT_VERSION="$(pat version | cut -d' ' -f2)"
[[ $PAT_VERSION =~ v0.1[01]. ]] && PAT_CONFIG="$HOME/.wl2k/config.json" || PAT_CONFIG="$HOME/.config/pat/config.json"
RETURN_CODE=0 RETURN_CODE=0
# Direwolf does not allow embedded spaces in timestamp format string -T # Direwolf does not allow embedded spaces in timestamp format string -T