Skip to content

Commit

Permalink
New UDP port for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored Dec 9, 2023
1 parent 5f73907 commit ca25099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/watchdog
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ monitor_feeder () {
chk_enabled "$VERBOSE" && "${s6wrap[@]}" --args echo monitoring "${RADARSERVER:-adsb-in.1090mhz.uk}:${RADARPORT:-2227}/${TRANSPORT_PROTOCOL:-udp} for ${measure_time:-10} secs" || true

measure_time="${1:-${MEASURE_TIME:-10}}"
result="$(grep captured <<< "$(timeout --preserve-status "${measure_time}" tcpdump -p dst "${RADARSERVER:-adsb-in.1090mhz.uk}" and "${TRANSPORT_PROTOCOL:-udp}" port "${RADARPORT:-2227}" 2>/dev/stdout 1>/dev/null)" | awk '{print $1}')"
result="$(grep captured <<< "$(timeout --preserve-status "${measure_time}" tcpdump -p dst "${RADARSERVER:-adsb-in.1090mhz.uk}" and "${TRANSPORT_PROTOCOL:-udp}" port "${RADARPORT:-5997}" 2>/dev/stdout 1>/dev/null)" | awk '{print $1}')"
resultcode="$?"

if (( resultcode != 0 )); then
Expand Down

0 comments on commit ca25099

Please sign in to comment.