mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-22 05:40:10 +00:00
bug fix
This commit is contained in:
parent
50513dd086
commit
d75e428bbc
1 changed files with 0 additions and 18 deletions
|
@ -45,24 +45,6 @@ then
|
||||||
READSB_CMD+=("--net-connector=localhost,${MLATHUB_BEAST_REDUCE_OUT_PORT:-31006},beast_in")
|
READSB_CMD+=("--net-connector=localhost,${MLATHUB_BEAST_REDUCE_OUT_PORT:-31006},beast_in")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if MLAT clients have been defined:
|
|
||||||
# parse MLAT_CONFIG string into mlat_configs array
|
|
||||||
# note - it's OK for MLAT_CONFIG to be empty or unset
|
|
||||||
readarray -td ";" mlat_configs < <(printf '%s' "${MLAT_CONFIG// /}")
|
|
||||||
# Now loop through the MLAT_CONFIG items and add a net-connector for each of them:
|
|
||||||
for instance in "${mlat_configs[@]}"
|
|
||||||
do
|
|
||||||
# shellcheck disable=SC2015
|
|
||||||
[[ -z "${instance}" ]] && continue || true
|
|
||||||
# put individual params into the $params array:
|
|
||||||
readarray -td "," params < <(printf '%s' "${instance}")
|
|
||||||
|
|
||||||
if [[ -n "${params[2]}" ]]
|
|
||||||
then
|
|
||||||
READSB_CMD+=("--net-connector=localhost,${params[2]},beast_in")
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
READSB_CMD+=("--write-json=/run/readsb")
|
READSB_CMD+=("--write-json=/run/readsb")
|
||||||
READSB_CMD+=("--heatmap-dir=/var/globe_history")
|
READSB_CMD+=("--heatmap-dir=/var/globe_history")
|
||||||
READSB_CMD+=("--heatmap=15")
|
READSB_CMD+=("--heatmap=15")
|
||||||
|
|
Loading…
Reference in a new issue