1 Star 0 Fork 0

badiku/vmwareUnlocker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
lnx-install.sh 997 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -e
echo "Unlocker 3.0.2 for VMware Workstation"
echo "====================================="
echo "(c) Dave Parsons 2011-18"
# 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
mkdir -p "./backup"
cp -v /usr/lib/vmware/bin/vmware-vmx ./backup/
cp -v /usr/lib/vmware/bin/vmware-vmx-debug ./backup/
cp -v /usr/lib/vmware/bin/vmware-vmx-stats ./backup/
if [ -d /usr/lib/vmware/lib/libvmwarebase.so.0/ ]; then
cp -v /usr/lib/vmware/lib/libvmwarebase.so.0/libvmwarebase.so.0 ./backup/
elif [ -d /usr/lib/vmware/lib/libvmwarebase.so/ ]; then
cp -v /usr/lib/vmware/lib/libvmwarebase.so/libvmwarebase.so ./backup/
fi
echo Patching...
python2 ./unlocker.py
echo Getting VMware Tools...
python gettools.py
cp ./tools/darwin*.* /usr/lib/vmware/isoimages/
echo Finished!
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/badiku/vmwareUnlocker.git
git@gitee.com:badiku/vmwareUnlocker.git
badiku
vmwareUnlocker
vmwareUnlocker
master

搜索帮助