From 832ef3650875c18fba399418625f36365d598b6a Mon Sep 17 00:00:00 2001 From: kx1t <15090643+kx1t@users.noreply.github.com> Date: Tue, 28 May 2024 14:13:36 -0400 Subject: [PATCH] Update aiscatcher --- rootfs/etc/s6-overlay/scripts/aiscatcher | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rootfs/etc/s6-overlay/scripts/aiscatcher b/rootfs/etc/s6-overlay/scripts/aiscatcher index 4bf9801..17a188e 100755 --- a/rootfs/etc/s6-overlay/scripts/aiscatcher +++ b/rootfs/etc/s6-overlay/scripts/aiscatcher @@ -41,6 +41,14 @@ then [[ -n "$feeds" ]] && FEEDSTRING+=("-u ${feeds//:/ }") done fi +if [[ -n "$TCP_FEEDS" ]] +then + readarray -d "," -t feedsarray <<< "$TCP_FEEDS" + for feeds in "${feedsarray[@]}" + do + [[ -n "$feeds" ]] && FEEDSTRING+=("-P ${feeds//:/ }") + done +fi # get gain VALID_GAINS=(0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6) @@ -160,6 +168,10 @@ if [[ -n "$MARINETRAFFIC_UDP_PORT" ]]; then if ! grep -q ":" <<< "$MARINETRAFFIC_UDP_PORT"; then MARINETRAFFIC_UDP_PORT="5.9.207.224:$MARINETRAFFIC_UDP_PORT"; fi aiscatcher_command+=("-u ${MARINETRAFFIC_UDP_PORT/:/ }") fi +if [[ -n "$MARINETRAFFIC_TCP_PORT" ]]; then + if ! grep -q ":" <<< "$MARINETRAFFIC_TCP_PORT"; then MARINETRAFFIC_TCP_PORT="5.9.207.224:$MARINETRAFFIC_TCP_PORT"; fi + aiscatcher_command+=("-P ${MARINETRAFFIC_TCP_PORT/:/ }") +fi # MyShipTracking: MYSHIPTRACKING_UDP_PORT="${MYSHIPTRACKING_UDP_PORT:-$MYSHIPTRACKER_UDP_PORT}" # bug fix - originally wrote wrongly MYSHIPTRACKER_UDP_PORT, now we need to keep this for backward compatibility