From 21478baf338d402ebed2bec2a89c6f4578a0f86d Mon Sep 17 00:00:00 2001 From: natemaia Date: Sat, 7 Mar 2020 12:27:42 -0800 Subject: [PATCH] Add networking check fix for VMs from HoaS. --- archlabs-installer | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/archlabs-installer b/archlabs-installer index 089af5f..c17cbf4 100755 --- a/archlabs-installer +++ b/archlabs-installer @@ -5,7 +5,7 @@ # Some ideas and code reworked from other resources # AIF, Calamares, and the Arch Wiki.. Credit where credit is due -VER=2.1.17 +VER=2.1.18 # default values { @@ -401,7 +401,7 @@ select_keymap() by Belarusian az Azerbaijani mk Macedonian kh Khmer epo Esperanto \ me Montenegrin || return 1 - if [[ $CMAPS == *"$KEYMAP"* ]]; then + if [[ $CMAPS == *"$KEYMAP "* ]]; then CMAP="$KEYMAP" else dlg CMAP menu "Console Keymap" "$_vconsole" $CMAPS || return 1 @@ -2510,7 +2510,11 @@ umount_dir() chk_connect() { msg "Network Connect" "\nVerifying network connection\n" 0 - ping -qc1 'archlinux.org' > /dev/null 2>&1 + 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 + fi } net_connect()