#
# This is the "Pre-install script". It should be used to check for things
# on our about the system before the installation actually happens.
#
# This script can abort an installation by simply performaing an exit after
# giving an explanation to the user.
#

# The installation must be run as root:
eval `id  |  sed 's/[^a-z0-9=].*//'`
if [ "$uid" -ne 0 ]; then
	echo "You must be root to install the Unitrends Backup Client."
	exit 1
fi


SOLARIS=`uname -a | grep SunOS`
if [ "$?" -eq "0" ]; then
	if [ ! -f /usr/lib/libm.so.2 ]; then
		ln -s /usr/lib/libm.so.1 /usr/lib/libm.so.2
	fi
fi
