#!/bin/sh
#

INFO="$PKG_INSTALL_ROOT/var/sadm/pkg/SUNWsndmr/pkginfo"
PATCHID=`egrep '^ACTIVE_PATCH' $INFO | nawk -F= '{print $2} '`

SENDMAILCF=$PKG_INSTALL_ROOT/etc/mail/sendmail.cf

cp $SENDMAILCF $SENDMAILCF.$PATCHID
if [ -f $SENDMAILCF.pre$PATCHID ]; then
        cp $SENDMAILCF.pre$PATCHID $SENDMAILCF
fi

exit 0
