From 29f514d85da4dbbf4f220b752af6943fb7d4b500 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 27 Jul 2021 17:04:19 +0200 Subject: [PATCH] add timeout to data check in update.sh --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index d0e2436..77614bd 100755 --- a/update.sh +++ b/update.sh @@ -368,7 +368,7 @@ https://github.com/wiedehopf/adsb-scripts/wiki/Automatic-installation-for-readsb " fi -if ! nc -z "$INPUT_IP" "$INPUT_PORT" && command -v nc &>/dev/null; then +if ! timeout 5 nc -z "$INPUT_IP" "$INPUT_PORT" && command -v nc &>/dev/null; then #whiptail --title "ADS-B Exchange Setup Script" --msgbox "$ENDTEXT2" 24 73 echo -e "$ENDTEXT2" else