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

	Date=`date +%m%d%y%M`
	if test -f $ROOTDIR/var/sadm/pkg/SUNWw250h/install/postremove
	then
		cd $ROOTDIR/var/sadm/pkg/SUNWw250h/install
		if `ls postremove.* > /dev/null 2>&1 `; then
			rm postremove.*
		fi
		if [ `cat postremove | wc -l` -gt 162 ] 
		then
			sed '1,162d' postremove > postremove.$Date	
			cp -p postremove.$Date postremove
			rm postremove.*
		fi
	fi
	exit 0


