mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Winlink - Added configuration replacement token for maidenhead grid
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"mycall": "{{ET_CALLSIGN}}",
|
||||
"secure_login_password": "{{ET_WINLINK_PASSWD}}",
|
||||
"auxiliary_addresses": [],
|
||||
"locator": "",
|
||||
"locator": "{{ET_GRID}}",
|
||||
"service_codes": [
|
||||
"PUBLIC"
|
||||
],
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user