Skip to content

Commit

Permalink
Handle changed options for VMware Tools install
Browse files Browse the repository at this point in the history
Signed-off-by: Rickard von Essen <rickard.von.essen@gmail.com>
  • Loading branch information
rickard-von-essen committed Nov 18, 2016
1 parent f9428eb commit c91f28a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/freebsd/vmtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,17 @@ vmware-iso|vmware-vmx)
mdconfig -a -t vnode -f $HOME_DIR/freebsd.iso -u 0;
mount -t cd9660 /dev/md0 /tmp/vmfusion;
tar xzf /tmp/vmfusion/vmware-freebsd-tools.tar.gz -C /tmp/vmfusion-archive;
/tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --default;

VER="`cat /tmp/vmfusion/manifest.txt | cut -f2 -d'"'`";
MAJ_VER="`echo ${VER} | cut -d'.' -f1`";
echo "VMware Tools Version: $VER";

if [ "${MAJ_VER}" -lt "10" ]; then
/tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --default;
else
/tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --force-install;
fi

echo 'ifconfig_vxn0="dhcp"' >>/etc/rc.conf;
umount /tmp/vmfusion;
rm -rf /tmp/vmfusion;
Expand Down

0 comments on commit c91f28a

Please sign in to comment.