From b45710dd2a739c891256c60a28d4407708d6cec1 Mon Sep 17 00:00:00 2001 From: Dewalt <> Date: Sun, 4 Oct 2020 06:30:55 -0500 Subject: [PATCH] Update Sun Oct 4 06:30:55 AM CDT 2020 --- pimpmykali.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pimpmykali.sh b/pimpmykali.sh index a8f2790..c050fe7 100755 --- a/pimpmykali.sh +++ b/pimpmykali.sh @@ -513,8 +513,22 @@ vbox_fix_shared_folder_permission_denied () { check_vm () { echo -e "\n $greenplus checking for hypervisor type \n" vbox_check=$(virt-what | grep -i -c "virtualbox") # virtualbox check + # if virt-what disappears from the repo + # alternate detection to virt-what : vbox_check=$(cat /proc/kallsyms | grep -i -c "vbox") + # alternate detection to virt-what : vbox_check=$(lsmod | grep -i -c "vbox") + # change if statement to accomodate a $vbox_check -ne 0 detection + vmware_check=$(virt-what | grep -i -c "vmware") # vmware check - if [ $vbox_check = 1 ] + # if virt-what disappears from the repo + # alternate detection to virt-what : vmware_check=$(cat /proc/kallsyms | grep -i -c "vmware") + # alternate detection to virt-what : vmware_check=$(lsmod | grep -i -c "vmware") + # change if statement to accomodate a $vmware_check -ne 0 detection + + # if $vmbox_check = 0 && $vmware_check =0 then bare_metal_installation=1 + # add double if $vbox_check && $vmware_check = 0 detection + + + if [ $vbox_check = 1 ] then echo -e "\n $greenplus *** VIRTUALBOX DETECTED *** \n" echo -e "\n $greenplus installing virtualbox-dkms virtualbox-guest-x11"