#! /bin/sh
#  Filename:    install_hpltt                                    
#  Description: script to install HP LTT diagnostics tool on HP-UX     
 
 
 
echo "Installing HP Library and Tape Tools..." 
echo " "
if swlist -a revision 2>/dev/null | grep HP_LTT 2>/dev/null 
then
      echo "Found Older Version, please remove older version and continue..." 
      exit 1
else
      echo "Install requires approximately 10MB of free space under /opt"
      echo "Beginning swinstall process of HP_LTT to /opt/ltt/"
fi
 
/usr/sbin/swinstall -v -s `pwd`/HP_LTT35.depot HP_LTT35 
chown -R root:sys /opt/ltt 
