#!/bin/sh
#
#
#       This script copies aside ssd.conf file that is overwritten by 
#	the patch, so customizations will not be lost.
#

#
# Copy aside the kernel/drv/ssd.conf file so customization will not
# be overwritten.
#
Date=`date +%m%d%y%M`
vers=`pkgparam -R $ROOTDIR SUNWssadv VERSION 2>/dev/null`
if test $vers
then
	if [ $vers = "11.5.1,REV=96.05.02.21.09" ]
	then
		if test -f $ROOTDIR/kernel/drv/ssd.conf
		then
		echo
        	echo "The file kernel/drv/ssd.conf will be overwritten by this patch"
        	echo "  "
        	echo "\n"
        	echo "A copy of the original kernel/drv/ssd.conf file will be saved "
        	echo "under the filename"
        	echo "\n"
        	echo "          /kernel/drv/ssd.conf.$Date"
        	echo "\n"
		echo "The files need to be manually merged if any customizations"
        	echo "were done."
        	echo
                cp -p $ROOTDIR/kernel/drv/ssd.conf $ROOTDIR/kernel/drv/ssd.conf.$Date
		fi
        fi
fi
exit 0
