diff options
author | Joe <bousset.rudy@gmail.com> | 2019-11-30 13:10:03 +0100 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2019-11-30 13:10:03 +0100 |
commit | 0d9ce2eb1484b2ed4933a91496546eb5ed6be2ab (patch) | |
tree | 3774c8f252997b8d96f2fd010f03c2a03094ac8b /arch-installer.sh | |
parent | README update (diff) | |
download | arch-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-x | arch-installer.sh | 22 |
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 --------------------------------------------# #==================================================================================================# |