
#
#ident	"@(#)postinstall	1.3	95/06/26 SMI"
#
# Copyright (c) 1992 by Sun Microsystems, Inc.
#
#
#	install the libcrypt symlink
#

# make the symlink
#
if [ ! -h $BASEDIR/usr/lib/libcrypt.a ] ; then
	ln -s libcrypt_i.a $BASEDIR/usr/lib/libcrypt.a || exit 2
fi
installf -f $PKGINST || exit 2
#
#       Remove unmodified crontab file for user, sysadm.
#       If crontab files exist for non-existant users,
#       cron complains at boot time because of fix for
#       1162432.
#
ORIGSUM=52574
SYSADM=$BASEDIR/var/spool/cron/crontabs/sysadm

if [ ! -f $SYSADM ] ; then
        exit 0
fi

SUM=`/usr/bin/sum $SYSADM | /usr/bin/awk ' { print $1 }' `

if [ $SUM = $ORIGSUM ] ; then
        removef SUNWcsr $SYSADM >/dev/null 2>&1
        removef -f SUNWcsr >/dev/null 2>&1
        rm $SYSADM
fi

exit 0
