mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-23 06:10:10 +00:00
fix issue
This commit is contained in:
parent
91cef40cb8
commit
b0fadb8682
1 changed files with 6 additions and 7 deletions
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue