#ident	"@(#)olpkg.oam:dtxt/preinstall	1.6"
#ident	"$Header: $"


[ -d /dev/X ] && rm -rf /dev/X

############# Begin UPGRADE AND OVERLAY #######################

SCRIPTS=/usr/sbin/pkginst

#  The volatile files saved for ${PKGINST} will be listed in 
#  /var/sadm/upgrade/${PKGINST}.sav

#  The initial V4 volatile files list for ${PKGINST} should be in 
#  /etc/inst/up/patch/${PKGINST}.LIST

[ "$PKGINSTALL_TYPE" = NEWINSTALL ] || {

	${SCRIPTS}/pkgsavfiles ${PKGINST}

	#  final list of volatile files to be saved is /tmp/${PKGINST}.sav
	#  pkgsavefiles returns 1, if nothing to be merged.

	[  $? = 1 ] && AUTOMERGE=NULL
}

############# End  UPGRADE AND OVERLAY #######################

export AUTOMERGE FILELIST
exit 0
