From 23b5941500a4e64222edc39367c9c45cefa4eb0e Mon Sep 17 00:00:00 2001 From: Gerd Zelo Date: Sat, 29 Jan 2022 16:15:25 +0100 Subject: [PATCH] Update installUnbound.sh --- unbound/installUnbound.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unbound/installUnbound.sh b/unbound/installUnbound.sh index d946b0b0..d5ea96a9 100755 --- a/unbound/installUnbound.sh +++ b/unbound/installUnbound.sh @@ -16,6 +16,11 @@ if [ "$(id -u)" != "0" ]; then exit 1 fi +if ! (ping -c1 -w2 google.de >/dev/null) && ! (ping -c1 -w2 cloudflare.com >/dev/null); then + echo "Keine Internetverbindung!" + exit 1 +fi + echo "*** Unbound installieren" echo "" apt-get update