#!/bin/sh
# add the SUNW2jdrt and SUNWctmgx packages after the patch is installed.

PKGADD=/usr/sbin/pkgadd
RM=/usr/bin/rm
RMDIR=/usr/bin/rmdir

TMP_DIR=$BASEDIR/opt/SUNWnetract/tmp

# packagesource is a file generated by pkgtrans for SUNW2jdrt and SUNWctmgx
# adminfile is a file for non-interactive pkgadd

${PKGADD} -d $TMP_DIR/packagesource -a $TMP_DIR/adminfile SUNW2jdrt SUNWctmgx

# remove the temporary files
${RM} $TMP_DIR/packagesource $TMP_DIR/adminfile
${RMDIR} $TMP_DIR

exit 0
