From be6e8d3c790d081be484085338b70b36bff80433 Mon Sep 17 00:00:00 2001 From: Mark McIntyre Date: Mon, 21 Jul 2025 23:08:52 +0100 Subject: [PATCH] another fix due to unexpected changes in RMS behaviour, this time the config file being removed during updates --- refreshTools.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/refreshTools.sh b/refreshTools.sh index d76493d..9c56a29 100755 --- a/refreshTools.sh +++ b/refreshTools.sh @@ -43,6 +43,12 @@ if [[ "$LOCATION" != "NOTCONFIGURED" && "$LOCATION" != "" ]] ; then # check if RMS is still updating - its taking longer and longer loopctr=0 echo "Checking RMS update not in progress" + while [ $loopctr -lt 10 ] ; do + [ -f $RMSCFG ] && break + echo "RMS update in progress or station not configured, trying again in a minute" + sleep 60 + loopctr=$((loopctr + 1)) + done while [ $loopctr -lt 10 ] ; do grep XX0001 $RMSCFG | grep stationID: [ $? -eq 1 ] && break