Skip to content

Commit

Permalink
Release candidate for 2.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDonk committed Dec 17, 2016
1 parent 20dc120 commit fdb8414
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 19 deletions.
28 changes: 17 additions & 11 deletions esxi-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ echo Copyright: Dave Parsons 2011-16
# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin

# Ensure we run from the patcher directory
cd "`dirname $0`"

# Create tmp folder for patching the files
echo Creating unlocker vmtar disk

# Create tmp folder for patching the files
Expand All @@ -18,23 +22,25 @@ mkdir -p tmp/lib
cp -v /bin/vmx tmp/bin
cp -v /bin/vmx-debug tmp/bin
cp -v /bin/vmx-stats tmp/bin
cp -v /lib/libvmkctl.so tmp/lib

if [ -f /lib64/libvmkctl.so ]; then
mkdir -p tmp/lib64
cp -v /lib64/libvmkctl.so tmp/lib64
fi
# Now using sed in the local.sh script
#cp -v /lib/libvmkctl.so tmp/lib
#
#if [ -f /lib64/libvmkctl.so ]; then
# mkdir -p tmp/lib64
# cp -v /lib64/libvmkctl.so tmp/lib64
#fi

# Patch the files
python unlocker.py

# Create the vmtar file for ESXi kernel
if [ -f /lib64/libvmkctl.so ]; then
tar cvf tmp/unlocker.tar -C tmp bin lib lib64
else
tar cvf tmp/unlocker.tar -C tmp bin lib
fi

#if [ -f /lib64/libvmkctl.so ]; then
# tar cvf tmp/unlocker.tar -C tmp bin lib lib64
#else
# tar cvf tmp/unlocker.tar -C tmp bin lib
#fi
tar cvf tmp/unlocker.tar -C tmp bin
vmtar -c tmp/unlocker.tar -v -o tmp/unlocker.vmtar
gzip tmp/unlocker.vmtar
mv tmp/unlocker.vmtar.gz tmp/unlocker.vgz
Expand Down
Empty file modified gettools.py
100644 → 100755
Empty file.
7 changes: 7 additions & 0 deletions local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ echo Copyright: Dave Parsons 2011-16

/etc/init.d/hostd status
/etc/init.d/hostd stop

vmkramdisk /bootbank/unlocker.vgz

sed -i 's/applesmc/vmkernel/g' /lib/libvmkctl.so
if [ -f /lib64/libvmkctl.so ]; then
sed -i 's/applesmc/vmkernel/g' /lib64/libvmkctl.so
fi

/etc/init.d/hostd start
/etc/init.d/hostd status
2 changes: 1 addition & 1 deletion smctest.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
vim-cmd hostsvc/hosthardware | grep smcPresent
vim-cmd hostsvc/hosthardware | grep smcPresent | cut -d ',' -f 1 | sed 's/^[ \t]*//'
15 changes: 8 additions & 7 deletions unlocker.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,14 @@ def main():
else:
print('Patching vmwarebase is not required on this system')

if osname == 'vmkernel':
# Patch ESXi 6.0 and 6.5 32 bit .so
patchvmkctl(libvmkctl32)

# Patch ESXi 6.5 64 bit .so
if os.path.isfile(libvmkctl64):
patchvmkctl(libvmkctl64)
# Now using sed in the local.sh script
# if osname == 'vmkernel':
# # Patch ESXi 6.0 and 6.5 32 bit .so
# patchvmkctl(libvmkctl32)
#
# # Patch ESXi 6.5 64 bit .so
# if os.path.isfile(libvmkctl64):
# patchvmkctl(libvmkctl64)


if __name__ == '__main__':
Expand Down
Empty file modified win-install.cmd
100755 → 100644
Empty file.
Empty file modified win-uninstall.cmd
100755 → 100644
Empty file.

0 comments on commit fdb8414

Please sign in to comment.