
PKGOSVER=6

#
# 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 -gt $PKGOSVER ]; then
   echo "==================================================================="
   echo "WARNING:"
   echo "   This version of the product can ONLY be installed under SunOS"
   echo "   5.6 or 5.5.1.  Current SunOS detected as 5.$OS.              "
   echo "==================================================================="
   exit 1
fi

exit 0

