From 52ceb89569896e6064986d501cef52809fcc9b8b Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 6 May 2022 06:24:06 -0400 Subject: [PATCH] Update ubuntu-install.sh --- setup/ubuntu-install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup/ubuntu-install.sh b/setup/ubuntu-install.sh index bc311688..854317a0 100644 --- a/setup/ubuntu-install.sh +++ b/setup/ubuntu-install.sh @@ -54,6 +54,12 @@ done msg_ok "Set up Container OS" msg_ok "Network Connected: ${BL}$(hostname -I)" +if : >/dev/tcp/8.8.8.8/53; then + msg_ok "Internet Online" +else + echo -e "${BFR} ${CROSS}${RD} Internet Offline" +fi + msg_info "Updating Container OS" apt update &>/dev/null apt-get -qqy upgrade &>/dev/null