
###########################################################################
# Name    : chk_install
# Purpose : The purpose of this routine is to check the result of a
#	    MIPS distribution tape installation. If the product was 
#	    installed correctly then the date of $pkgroot/usr/pkg/lib/$pkgdir
#	    will be the current date and the product specific
#	    pkginfo file will be there.
# Author  : Tripty Dhar
#
# HISTORY
#
# Date		Programmer	Comment
# 11/20/90	T. Dhar		Initial Coding
#
###########################################################################
DATE=`date | cut -c5-10`
line=0
line=`ls -l $Pkgroot/usr/pkg/lib | grep $Pkgdir`
if [ "${line}" != 0 ]
then
	if [ -f $Pkg/pkginfo ]
	then
		instdate=`echo $line | cut -d' ' -f6,7`
		if [ "${DATE}" = "${instdate}" ]
		then
			exit 0
		fi
	fi
fi
exit 1
