#!/bin/sh

#
#ident  "@(#)prepatch	1.1 05/09/01 SMI"
#
#
# Copyright (c) 05/09/01 by Sun Microsystems, Inc. All Rights Reserved
#
#  Prepatch script for patch 111344
#

# Exit codes for installation scripts
e_ok=0
e_fatal=1      # stop installation on this exit
e_warning=2    # Installation will go on.
e_int=3        # Interrupted. Stop installation
e_reboot=10    # User must reboot after installation of all selected packages
e_rebootnow=20 # User must reboot right after installation of current package
               # To be added to one of the single-digit exit code above

# Trap interrupt
trap `exit $e_int` 15
#

#
# version check
#
osvers=`/bin/uname -r | /bin/sed -e 's/\.//'`
if [ $osvers -lt 57 -o $osvers -gt 59 ]
then
	echo "ERROR: this patch should be installed on Solaris 7, 8 or 9"
	echo ""
	exit $e_fatal
fi

exit $e_ok
