#! /bin/sh
#  Filename:    install_hpltt                                    
#  Description: script to install HP LTT diagnostics tool on SOLARIS     
 
 
 
echo "Installing HP Library and Tape Tools..." 
echo " "
if /usr/sbin/pkginfo 2>/dev/null | grep HPLTT 2>/dev/null 
then
echo " "
      echo "Software is already installed, please remove the installed one and continue..." 
echo " "
      exit 1
else
      echo "Install requires approximately 25MB of free space under /opt"
      echo "Beginning pkgadd process of HPLTT to /opt/ltt/"
fi
 
/usr/sbin/pkgadd -d `pwd`
chown -R root:sys /opt/ltt 
