#!/bin/sh
# Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
#
# prepatch script to check the OS version

OS=`/usr/bin/uname -r`

if [ -z "$ROOTDIR" ] || [ "$ROOTDIR" = "/" ] ; then
        if [ ${OS} != #OS_VERSION# ]; then 
                echo "This patch can only be applied on Solaris #OS_RELEASE#."
                echo "Please get the appropriate patch for your system."
                exit 1
        fi
fi
