aboutsummaryrefslogtreecommitdiffstats
path: root/arch-installer.sh
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2019-11-30 13:10:03 +0100
committerJoe <bousset.rudy@gmail.com>2019-11-30 13:10:03 +0100
commit0d9ce2eb1484b2ed4933a91496546eb5ed6be2ab (patch)
tree3774c8f252997b8d96f2fd010f03c2a03094ac8b /arch-installer.sh
parentREADME update (diff)
downloadarch-installer-0d9ce2eb1484b2ed4933a91496546eb5ed6be2ab.tar.gz
arch-installer-0d9ce2eb1484b2ed4933a91496546eb5ed6be2ab.tar.bz2
arch-installer-0d9ce2eb1484b2ed4933a91496546eb5ed6be2ab.tar.xz
arch-installer-0d9ce2eb1484b2ed4933a91496546eb5ed6be2ab.tar.zst
arch-installer-0d9ce2eb1484b2ed4933a91496546eb5ed6be2ab.zip
Adding options for virtal guests
Diffstat (limited to 'arch-installer.sh')
-rwxr-xr-xarch-installer.sh22
1 files changed, 22 insertions, 0 deletions
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 --------------------------------------------#
#==================================================================================================#