Skip to content

Commit

Permalink
New ESXi Unlocker first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDonk committed Aug 19, 2018
1 parent 29485bb commit 1073f82
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 165 deletions.
File renamed without changes.
12 changes: 1 addition & 11 deletions esxi/esxi-build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
#!/bin/sh
set -e
#set -x

# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin

# Copy patch to local.sh
rm -fv local.sh
cp local-prefix.sh local.sh
cat unlocker.py >> local.sh
cat local-suffix.sh >> local.sh
chmod +x local.sh
tar czvf unlocker-esxi-300.tgz unlocker.tgz esxi-install.sh esxi-uninstall.sh
63 changes: 0 additions & 63 deletions esxi/esxi-config.py

This file was deleted.

21 changes: 5 additions & 16 deletions esxi/esxi-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,13 @@
set -e
#set -x

echo VMware Unlocker 2.1.0
echo VMware Unlocker 3.0.0
echo ===============================
echo Copyright: Dave Parsons 2011-17
echo Copyright: Dave Parsons 2011-18

# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin

VER=$(uname -r)
if [ "$VER" == "6.0.0" ]; then
echo "Error - ESXi 6.0.0 is not supported!"
elif [ "$VER" == "6.5.0" ]; then
# Copy patch to local.sh
echo Installing local.sh
chmod +x local.sh
cp local.sh /etc/rc.local.d/local.sh
python esxi-config.py on
backup.sh 0
echo "Success - please now restart the server!"
else
echo "Unknown ESXi version"
fi
echo Installing unlocker.tgz
BootModuleConfig.sh --verbose --add=unlocker.tgz
echo Success - please now restart the server!
10 changes: 4 additions & 6 deletions esxi/esxi-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
set -e
#set -x

echo VMware Unlocker 2.1.0
echo VMware Unlocker 3.0.0
echo ===============================
echo Copyright: Dave Parsons 2011-17
echo Copyright: Dave Parsons 2011-18

# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin

echo Uninstalling local.sh
cp /etc/rc.local.d/.#local.sh /etc/rc.local.d/local.sh
python esxiconfig.py off
backup.sh 0
echo Uninstalling unlocker.tgz
BootModuleConfig.sh --verbose --remove=unlocker.tgz
echo Success - please now restart the server!
65 changes: 0 additions & 65 deletions esxi/local-prefix.sh

This file was deleted.

4 changes: 0 additions & 4 deletions esxi/local-suffix.sh

This file was deleted.

Binary file added esxi/unlocker-esxi-300.tgz
Binary file not shown.
Binary file added esxi/unlocker.tgz
Binary file not shown.

0 comments on commit 1073f82

Please sign in to comment.