#ident	"@(#)postinstall	1.4	03/04/21 SMI"
#
# Copyright 1992-2003 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

sparc_postinstall () {
    # make symlink to international libcrypt
    #
    if [ ! -h $BASEDIR/usr/lib/sparcv9/libcrypt.so ] ; then
	    ln -s libcrypt_i.so $BASEDIR/usr/lib/sparcv9/libcrypt.so || exit 2
    fi
    if [ ! -h $BASEDIR/usr/lib/sparcv9/libcrypt.so.1 ] ; then
	ln -s libcrypt_i.so.1 $BASEDIR/usr/lib/sparcv9/libcrypt.so.1 || exit 2
    fi
}

# make symlink to international libcrypt
#
if [ ! -h $BASEDIR/usr/lib/libcrypt.so ] ; then
	ln -s libcrypt_i.so $BASEDIR/usr/lib/libcrypt.so || exit 2
fi
if [ ! -h $BASEDIR/usr/lib/libcrypt.so.1 ] ; then
	ln -s libcrypt_i.so.1 $BASEDIR/usr/lib/libcrypt.so.1 || exit 2
fi

if [ "$ARCH" = "sparc" ]; then sparc_postinstall; fi;

#
#	end with removef -f and exit message
#
removef -f $PKGINST || exit 2

exit 0
