1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-23 14:20:10 +00:00

fix issue

This commit is contained in:
kx1t 2024-05-24 09:29:36 -04:00 committed by Matthias Wirth
parent 91cef40cb8
commit b0fadb8682

View file

@ -19,18 +19,17 @@
source /scripts/common source /scripts/common
# Check every 60 secs if GPSD has been enabled # Wait until all mlat-client instances have started
if [[ ! -f /run/readsb/gpsd.json ]] || [[ "$(jq -r .lat /run/readsb/gpsd.json)" == "null" ]]; then
sleep 60 & wait $!
fi
# Then wait until all mlat-client instances have started
while [[ ! -f /run/.all_mlatclient_instances_have_started ]]; do while [[ ! -f /run/.all_mlatclient_instances_have_started ]]; do
sleep 5 & wait $! sleep 5 & wait $!
done done
rm -f /run/.all_mlatclient_instances_have_started rm -f /run/.all_mlatclient_instances_have_started
# Check every 60 secs if GPSD has been enabled
while [[ ! -f /run/readsb/gpsd.json ]] || [[ "$(jq -r .lat /run/readsb/gpsd.json)" == "null" ]]; do
sleep 60 & wait $!
done
# Now wait a bit to allow GPS to establish itself # Now wait a bit to allow GPS to establish itself
sleep "${GPSD_INITIAL_WAIT:-60}" sleep "${GPSD_INITIAL_WAIT:-60}"