ubuntu内核升级,vmware重新编译失败解决脚本

#!/bin/bash
cd ~ 
if [ -d  "./vmware-host-modules" ];then
	rm -rf vmware-host-modules 
	echo 'rm exit file'
fi
echo 'fetch the newest file'
git clone https://github.com/mkubecek/vmware-host-modules.git 
cd vmware-host-modules
git checkout workstation-16.2.3
make
sudo make install
echo '######### vm-install fininshed ############' 	
sudo /etc/init.d/vmware start
echo '######### restart vmware ############' 
exit 0

你可能感兴趣的:(Ubuntu,ubuntu,linux)