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/ecfab9989480b389c0fc to your computer and use it in GitHub Desktop.
#!/bin/bash
VMTOOlS="VMwareTools-9.9.2-2496486.tar.gz"
if [ ! -e ${VMTOOlS} ]; then
echo "${VMTOOlS} is Not found. Please save this file for current dir."
exit 1
fi
tar xzf ${VMTOOlS}
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 ../../../
echo 'Finished patch. Please run "./vmware-install.pl"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment