Skip to content

Commit 7403470

Browse files
authored
Update install.func
1 parent af9475d commit 7403470

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

misc/install.func

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
6869
network_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
128129
update_os() {
129130
msg_info "Updating Container OS"

0 commit comments

Comments
 (0)