#!/bin/sh
# ******************************************************************************
# ***                           IDENTIFICATION                              ***
# ******************************************************************************
# Name:         prepatch
# Title:        108834 prepatch script
# Version:
# Revision:     $Revision:$
# Update Date:  $Date: $
# Programmer:   bem
# Documents:
#
# COPYRIGHT 1996, 1997, 1998, 1999, 2000 by LSI Logic Inc.
#
# Description:  Test to see if on a Solaris 2.5.1, Solaris 2.6 or Solaris 7 O/S.
#               Patch should only be applied to these three O/S.
#
# Note:			The prepatch script is intended to go in each individuals
#				install directory so that the package install order is moot.

rel=`grep VERSION $PKG_INST_ROOT/var/sadm/system/admin/INST_RELEASE | cut -d= -f2`

if [ $rel = "2.7" ] || [ $rel = "2.6" ] || [ $rel = "2.5.1" ]
then
	exit 0
else
	echo " "
	echo "This patch only applies to rm6 running on Solaris 2.5.1,"
	echo "Solaris 2.6 or Solaris 7 .. exiting"
	echo " "
	exit 1
fi

