Winlink - Added configuration replacement token for maidenhead grid

This commit is contained in:
Gaston Gonzalez
2024-11-04 17:24:37 -07:00
parent 82d779e8ee
commit 9b811e6e07
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"mycall": "{{ET_CALLSIGN}}",
"secure_login_password": "{{ET_WINLINK_PASSWD}}",
"auxiliary_addresses": [],
"locator": "",
"locator": "{{ET_GRID}}",
"service_codes": [
"PUBLIC"
],
+2
View File
@@ -63,6 +63,7 @@ update_config () {
[ -z "$ET_USER_CONFIG" ] && ET_USER_CONFIG="${HOME}/.config/emcomm-tools/user.json"
CALLSIGN=$(cat ${ET_USER_CONFIG} | jq -r .callsign)
GRID=$(cat ${ET_USER_CONFIG} | jq -r .grid)
WINLINK_PASSWD=$(cat ${ET_USER_CONFIG} | jq -r .winlinkPasswd)
if [ "${CALLSIGN}" = "N0CALL" ]; then
@@ -75,6 +76,7 @@ update_config () {
sed -i "s|{{ET_CALLSIGN}}|${CALLSIGN}|g" ${PAT_CONF_FILE}
sed -i "s|{{ET_WINLINK_PASSWD}}|${WINLINK_PASSWD}|g" ${PAT_CONF_FILE}
sed -i "s|{{ET_GRID}}|${GRID}|g" ${PAT_CONF_FILE}
}
case $1 in