diff --git a/overlay/opt/emcomm-tools/bin/et-chattervox b/overlay/opt/emcomm-tools/bin/et-chattervox index 762af2c..c8f3175 100755 --- a/overlay/opt/emcomm-tools/bin/et-chattervox +++ b/overlay/opt/emcomm-tools/bin/et-chattervox @@ -109,6 +109,17 @@ cat < "${CHATTERVOX_CONF_FILE}" } EOF fi + + else + et-log "Chattervox configuration already exists, checking for change in et-user..." + + CUR_CALLSIGN=$(cat ${ET_USER_CONFIG} | jq -r .callsign) + CONFIGURED_CALLSIGN=$(cat ${CHATTERVOX_CONF_FILE} | jq -r .callsign) + + if [ "${CUR_CALLSIGN}" != "${CONFIGURED_CALLSIGN}" ]; then + et-log "User callsign has changed from ${CUR_CALLSIGN} to ${CONFIGURED_CALLSIGN}" + fi + fi }