代码拉取完成,页面将自动刷新
#!/bin/bash
set -e
echo "Unlocker 3.0.3 for VMware Workstation"
echo "====================================="
echo "(c) Dave Parsons 2011-21"
# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo Creating backup folder...
rm -rf ./backup 2>/dev/null
mkdir -p ./backup
cp -pv /usr/lib/vmware/bin/vmware-vmx ./backup/
cp -pv /usr/lib/vmware/bin/vmware-vmx-debug ./backup/
cp -pv /usr/lib/vmware/bin/vmware-vmx-stats ./backup/
if [ -d /usr/lib/vmware/lib/libvmwarebase.so.0/ ]; then
cp -pv /usr/lib/vmware/lib/libvmwarebase.so.0/libvmwarebase.so.0 ./backup/
elif [ -d /usr/lib/vmware/lib/libvmwarebase.so/ ]; then
cp -pv /usr/lib/vmware/lib/libvmwarebase.so/libvmwarebase.so ./backup/
fi
echo Creating tools folder...
rm -rf ./tools 2>/dev/null
mkdir -p ./tools
echo Patching...
./unlocker.py
echo Getting VMware Tools...
./gettools.py
echo Finished!
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。