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