1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2025-04-01 21:29:35 +02:00

ultrafeeder config: add special casing for silent_fail

this makes the net connector parameter silent_fail functional
This commit is contained in:
Matthias Wirth 2025-01-14 20:26:35 +00:00
parent 382760f67c
commit e3bd4a451e

View file

@ -91,6 +91,8 @@ do
do
if [[ "${param[i]:0:5}" == "uuid=" ]]; then
readsb_str="${readsb_str},${param[i]}"
elif [[ "${param[i]}" == "silent_fail" ]]; then
readsb_str="${readsb_str},${param[i]}"
elif [[ -n "${param[i]}" ]]; then
READSB_CONF_ARR+=("${param[i]}")
fi
@ -114,12 +116,14 @@ do
for ((i=4; i<${#param[*]}; i++))
do
if [[ "${param[i]:0:5}" == "uuid=" ]]; then
mlathub_str="${readsb_str},${param[i]}"
mlathub_str="${mlathub_str},${param[i]}"
elif [[ "${param[i]}" == "silent_fail" ]]; then
mlathub_str="${mlathub_str},${param[i]}"
elif [[ -n "${param[i]}" ]]; then
MLATHUB_CONF_ARR+=("${param[i]}")
fi
done
# Now add $readsb_str to the READSB_CONF_STR as --net-connector argument:
# Now add $mlathub_str to the READSB_CONF_STR as --net-connector argument:
MLATHUB_CONF_ARR+=("--net-connector=${mlathub_str}")
;;