unlocker/lnx-install.sh

38 lines
1000 B
Bash
Raw Permalink Normal View History

2015-01-31 12:19:41 +01:00
#!/bin/bash
set -e
echo "Unlocker 3.0.2 for VMware Workstation"
2018-10-01 20:55:52 +02:00
echo "====================================="
echo "(c) Dave Parsons 2011-18"
2015-01-31 12:19:41 +01:00
# 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/
2015-09-14 14:51:31 +02:00
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
2015-01-31 12:19:41 +01:00
echo Patching...
python3 ./unlocker.py
2015-01-31 12:19:41 +01:00
2015-11-29 15:00:53 +01:00
echo Getting VMware Tools...
python3 ./gettools.py
cp ./tools/darwin*.* /usr/lib/vmware/isoimages/
2015-01-31 12:19:41 +01:00
echo Finished!