#!/bin/sh



expected_platform=x86_64
expected_release=2.6.39-400.317.1.el5uek

platform=`uname -p`
release=`uname -r`

if [ "${platform}" != "${expected_platform}" ]; then
   printf "\n\tThis package must be installed on a %b architecture\n" ${expected_platform}
   printf "\tAborting installation.\n\n\n"
   exit 1
fi

if [ "${release}" != "${expected_release}" ]; then 
    printf "\n\tThis package is only supported on Solaris %b\n" "${expected_release}"
    printf "\tAborting installation.\n\n\n"
    exit 1
fi

exit 0
