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"