From 7403470bd7674598d0796a15779c8a694824bf33 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 4 Jul 2025 21:55:35 +0200 Subject: [PATCH] Update install.func --- misc/install.func | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/install.func b/misc/install.func index 755e9886c..4b1079618 100644 --- a/misc/install.func +++ b/misc/install.func @@ -64,6 +64,7 @@ setting_up_container() { msg_ok "Set up Container OS | Network Connected: ${BL}$(hostname -I" } +# This function checks the network connection by pinging a known IP address and prompts the user to continue if the internet is not connected # This function checks the network connection by pinging a known IP address and prompts the user to continue if the internet is not connected network_check() { set +e @@ -71,6 +72,7 @@ network_check() { ipv4_connected=false ipv6_connected=false sleep 1 + # Check IPv4 connectivity to Google, Cloudflare & Quad9 DNS servers. if ping -c 1 -W 1 1.1.1.1 &>/dev/null || ping -c 1 -W 1 8.8.8.8 &>/dev/null || ping -c 1 -W 1 9.9.9.9 &>/dev/null; then msg_ok "IPv4 Internet Connected" @@ -123,7 +125,6 @@ network_check() { trap 'error_handler $LINENO "$BASH_COMMAND"' ERR } - # This function updates the Container OS by running apt-get update and upgrade update_os() { msg_info "Updating Container OS"