#!/bin/sh
#
# This script edits the postremove file in the /var/sadm/pkg/SUNWw250/install
# directory. The edit fixes bug 4132417.
#

	Date=`date +%m%d%y%M`
	if test -f $ROOTDIR/var/sadm/pkg/SUNWw250/install/postremove
	then
		cd $ROOTDIR/var/sadm/pkg/SUNWw250/install
		if `ls postremove.* > /dev/null 2>&1 `; then
			rm postremove.*
		fi
		sed 's/\/usr\/sbin\/rem_drv/\/usr\/sbin\/rem_drv -b \${BASEDIR}/g' postremove > postremove.$Date	
		cp -p postremove.$Date postremove
		rm postremove.*
	fi


