1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-12-23 21:02:01 +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
# Check every 60 secs if GPSD has been enabled
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
# Wait until all mlat-client instances have started
while [[ ! -f /run/.all_mlatclient_instances_have_started ]]; do
sleep 5 & wait $!
done
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
sleep "${GPSD_INITIAL_WAIT:-60}"