#! /bin/sh
#
#
# This next section is very important it should not be
# deleted from this file, and this file should NOT be deleted
# from this or any newer revision of this KU. It should be retained 
# in every 2.6 SPARC KU patch from now on. PK 07/18/02
#
# Manually resync the cached DB.
PATCHDB=$ROOTDIR/var/sadm/patch/.patchDB

[ -f $PATCHDB ] && rm -f $PATCHDB
/usr/sbin/patchadd -R $ROOTDIR -p > /dev/null
#
#
# This script creates the directory called /etc/security/spool.
# This directory will be used by bsmconv to move S92volmgt aside.
#
verscsr=`pkgparam -R $ROOTDIR SUNWcsr VERSION 2>/dev/null`
verscsu=`pkgparam -R $ROOTDIR SUNWcsu VERSION 2>/dev/null`
if [ "$verscsr" = "11.6.0,REV=1997.07.15.21.46" ] && \
        [ "$verscsu" = "11.6.0,REV=1997.07.15.21.46" ]; then
        if [ ! -d $ROOTDIR/etc/security/spool ]; then
                mkdir -m 755 $ROOTDIR/etc/security/spool
                chown root $ROOTDIR/etc/security/spool
                chgrp sys $ROOTDIR/etc/security/spool
                installf -R $ROOTDIR SUNWcsr /etc/security/spool
                installf -f -R $ROOTDIR SUNWcsr
        fi
fi
exit 0

