#!/bin/sh

# This script prevents this patch from being installed on anything but
# a CS6400.

PLATFORM=`/bin/uname -i`
RETVAL=1

if [ "${ROOTDIR}" = "/" ]; then
	if [ "${PLATFORM}" = "CYRS,Superserver-6400" ]; then
		RETVAL=0
	fi
elif [ -f "${ROOTDIR}/platform/sun4d6/kernel/unix" ]; then
	# $ROOTDIR is not "/" but CS6400 is installed in $ROOTDIR.
	RETVAL=0
fi

if [ "${RETVAL}" -eq 1 ]; then
	echo "This patch is only meant to be installed on CS6400's" >&2
	echo "This patch is invalid for ${PLATFORM}" >&2
fi

exit ${RETVAL}
