Update Fri Oct 2 08:09:49 AM CDT 2020

This commit is contained in:
Dewalt 2020-10-02 08:09:49 -05:00
parent b4e9c47d3c
commit da78eaac05
1 changed files with 10 additions and 4 deletions

View File

@ -558,19 +558,23 @@ pimpmykali_menu () {
} }
virt_what() { virt_what() {
echo -e "\n $greenplus installing virt-what"
apt -y update $silent && apt -y install virt-what $silent apt -y update $silent && apt -y install virt-what $silent
} }
check_vm () { check_vm () {
echo -e "\n $greenplus checking for hypervisor type "
if [ $vbox_check = 1 ] if [ $vbox_check = 1 ]
then then
echo -e "\n\n *** VIRTUALBOX DETECTED *** \n\n" echo -e "\n $greenplus *** VIRTUALBOX DETECTED *** "
echo -e "\n $greenplus installing virtualbox-dkms virtualbox-guest-x11"
sudo apt -y reinstall virtualbox-dkms virtualbox-guest-x11 sudo apt -y reinstall virtualbox-dkms virtualbox-guest-x11
exit_screen exit_screen
elif [ $vmware_check = 1 ] elif [ $vmware_check = 1 ]
then then
echo -e "\n\n *** VMWARE DETECTED *** \n\n" echo -e "\n $greenplus *** VMWARE DETECTED *** "
echo -e "\n $greenplus installing open-vm-tools-desktop fuse"
sudo apt -y reinstall open-vm-tools-desktop fuse sudo apt -y reinstall open-vm-tools-desktop fuse
exit_screen exit_screen
else else
@ -579,14 +583,16 @@ check_vm () {
} }
fix_sources () { fix_sources () {
echo -e "\n $greenplus fixing sources /etc/apt/sources.list"
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list
echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >>/etc/apt/sources.list echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >>/etc/apt/sources.list
echo -e "\n $greenplus fixed sources /etc/apt/sources.list"
} }
run_update () { run_update () {
fix_sources fix_sources
apt -y update && sudo apt -y upgrade echo -e "\n $greenplus starting pimpmyupgrade "
apt -y update $silent && sudo apt -y upgrade $silent
echo -e "\n $greenplus installing linux-headers "
apt -y install linux-headers-5.8.0-kali2-amd64 apt -y install linux-headers-5.8.0-kali2-amd64
kernel_check=$(ls -l /lib/modules | sort -n | cut -d " " -f 10 | tail -n 2) # ya its dirty, but it works kernel_check=$(ls -l /lib/modules | sort -n | cut -d " " -f 10 | tail -n 2) # ya its dirty, but it works
apt -y install linux-headers-$kernel_check apt -y install linux-headers-$kernel_check