Add networking check fix for VMs from HoaS.

This commit is contained in:
natemaia 2020-03-07 12:27:42 -08:00
parent 6b8d0b7e1d
commit 21478baf33

View File

@ -5,7 +5,7 @@
# Some ideas and code reworked from other resources # Some ideas and code reworked from other resources
# AIF, Calamares, and the Arch Wiki.. Credit where credit is due # AIF, Calamares, and the Arch Wiki.. Credit where credit is due
VER=2.1.17 VER=2.1.18
# default values { # default values {
@ -2510,7 +2510,11 @@ umount_dir()
chk_connect() chk_connect()
{ {
msg "Network Connect" "\nVerifying network connection\n" 0 msg "Network Connect" "\nVerifying network connection\n" 0
if [[ $VM ]] && hash nm-online > /dev/null 2>&1; then
nm-online > /dev/null 2>&1
else
ping -qc1 'archlinux.org' > /dev/null 2>&1 ping -qc1 'archlinux.org' > /dev/null 2>&1
fi
} }
net_connect() net_connect()