From 0d9ce2eb1484b2ed4933a91496546eb5ed6be2ab Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 30 Nov 2019 13:10:03 +0100 Subject: Adding options for virtal guests --- arch-installer.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch-installer.sh b/arch-installer.sh index ec05524..a01efba 100755 --- a/arch-installer.sh +++ b/arch-installer.sh @@ -11,6 +11,8 @@ usrusrpwd="fade" hstnm="" isusr=false isusrsudo=false +vbox=false +vmware=false intelamdcpu="none" intelamdgpu="none" numregex='^[0-9]+$' @@ -98,6 +100,26 @@ components to install:" 10 50 3 \ extras=true fi } + +jo_get_vm() { + if dialog --title "$1"\ + --yesno "Are you running in a virtual machine?"\ + 5 45; then + sel=$(dialog --nocancel --title "$1"\ + --radiolist "Which hypervisor are you using\ + components to install:" 10 50 3 \ + vbox "Oracle VirtualBox" on \ + vmware "VMware" off \ + other "Something else" off \ + 3>&1 1>&2 2>&3 3>&-) + if echo -n "$sel" | grep -q vbox; then + vbox=true + elif echo -n "$sel" | grep -q utils; then + vmware=true + fi + fi + +} #==================================================================================================# #------------------------------------------ DISK SETUP --------------------------------------------# #==================================================================================================# -- cgit v1.2.3