File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,15 @@ setting_up_container() {
6464 msg_ok "Set up Container OS | Network Connected: ${BL}$(hostname -I"
6565}
6666
67+ # This function checks the network connection by pinging a known IP address and prompts the user to continue if the internet is not connected
6768# This function checks the network connection by pinging a known IP address and prompts the user to continue if the internet is not connected
6869network_check() {
6970 set +e
7071 trap - ERR
7172 ipv4_connected=false
7273 ipv6_connected=false
7374 sleep 1
75+
7476 # Check IPv4 connectivity to Google, Cloudflare & Quad9 DNS servers.
7577 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
7678 msg_ok "IPv4 Internet Connected"
@@ -123,7 +125,6 @@ network_check() {
123125 trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
124126}
125127
126-
127128# This function updates the Container OS by running apt-get update and upgrade
128129update_os() {
129130 msg_info "Updating Container OS"
You can’t perform that action at this time.
0 commit comments