Skip to content

Instantly share code, notes, and snippets.

@ik11235
Last active August 29, 2015 14:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ik11235/64263c2314cc1956415f to your computer and use it in GitHub Desktop.
#!/bin/sh
VMTOOL="VMwareTools-9.9.0-2304977.tar.gz"
ISOPATH="payload/linux.iso"
git clone https://github.com/rasa/vmware-tools-patches.git
cd vmware-tools-patches
wget https://softwareupdate.vmware.com/cds/vmw-desktop/fusion/7.1.0/2314774/packages/com.vmware.fusion.tools.linux.zip.tar
tar xf com.vmware.fusion.tools.linux.zip.tar
unzip com.vmware.fusion.tools.linux.zip
echo ""
echo "Please mount `pwd`${ISOPATH}, and move ${VMTOOL} for `pwd`. Enter Once it finished."
read Wait
tar xzf ${VMTOOL}
cd vmware-tools-distrib/lib/modules/source/
tar xf vmhgfs.tar
sed -i -e s/d_alias/d_u.d_alias/g vmhgfs-only/inode.c
cp -p vmhgfs.tar vmhgfs.tar.origi
tar cf vmhgfs.tar vmhgfs-only
cd ../../../../
cp -p ${VMTOOL} ${VMTOOL}.origi
tar czf ${VMTOOL} vmware-tools-distrib
echo 'Finished patch. Please run "./untar-and-patch-and-compile.sh"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment