#!/bin/bash
# Checks to see that vmware-tools are running.

#rhel6
cat /etc/redhat-release | grep -q "release 6."
if [ "$?" == "0" ]; then
        /sbin/lsmod | grep -q vmci
        if [ ! "$?" == "0" ]; then
                if [ -e /usr/bin/vmware-config-tools.pl ]; then
                        echo "VMware Tools not running for current kernel."
                        echo "Running vmware-config-tools.pl..."
                        /usr/bin/vmware-config-tools.pl -d
                fi
        fi
fi
