
PKGOSVER=7

#
# This package can be installed only in root partition
#

if [ ! -f $PKG_INSTALL_ROOT/etc/nodename ]; then
        echo "This package can only be installed in root partition."
	exit 1
else

        OS=`/usr/bin/pkgparam -f $PKG_INSTALL_ROOT/var/sadm/softinfo/INST_RELEASE VERSION | /usr/bin/sed s/VERSION=// | /usr/bin/sed 's/^2\.//'`
fi

if [ $OS -lt $PKGOSVER ]; then
   echo "==================================================================="
   echo "WARNING:"
   echo "  This version of the product can ONLY be installed under SunOS "
   echo "  5.$PKGOSVER or higher.  Current SunOS detected as 5.$OS."
   echo "==================================================================="
   exit 1
fi

exit 0
