mirror of
https://github.com/tteck/Proxmox.git
synced 2026-07-05 17:02:44 +02:00
Update install.func
This commit is contained in:
+4
-4
@@ -113,7 +113,7 @@ network_check() {
|
|||||||
set +e
|
set +e
|
||||||
trap - ERR
|
trap - ERR
|
||||||
# Check if IPv4 is being used
|
# Check if IPv4 is being used
|
||||||
if ip -o -4 addr show | grep -q "scope global"; then
|
if ip -o -4 addr show | grep -q "scope global"; then
|
||||||
if ping -c 1 -W 1 1.1.1.1 &>/dev/null; then
|
if ping -c 1 -W 1 1.1.1.1 &>/dev/null; then
|
||||||
msg_ok "IPv4 Internet Connected";
|
msg_ok "IPv4 Internet Connected";
|
||||||
else
|
else
|
||||||
@@ -126,10 +126,10 @@ if ip -o -4 addr show | grep -q "scope global"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if IPv6 is being used
|
# Check if IPv6 is being used
|
||||||
if ip -o -6 addr show | grep -q "scope global"; then
|
if ip -o -6 addr show | grep -q "scope global"; then
|
||||||
if ping6 -c 1 -W 1 2606:4700:4700::1111 &>/dev/null; then
|
if ping6 -c 1 -W 1 2606:4700:4700::1111 &>/dev/null; then
|
||||||
msg_ok "IPv6 Internet Connected";
|
msg_ok "IPv6 Internet Connected";
|
||||||
else
|
else
|
||||||
@@ -142,7 +142,7 @@ if ip -o -6 addr show | grep -q "scope global"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
|
RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user