#==========================================================================
#  request
#
#	- Sets the DEST variable which is used by pkgmap
#
#   Copyright (c) 1993 Sun Microsystems, Inc.  All Rights Reserved.
#==========================================================================
trap 'exit 3' 15

instpkg=""
for pkg in SMCChd SMCCss; do
	pkginfo -q $pkg > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		instpkg=$pkg
		DEST=`pkgparam $pkg DEST`
		break
	fi
done

if [ x"$instpkg" = x ]; then
	echo "Couldn't determine installation location, aborting patch"
	exit 3
fi
cat > $1 << EOF
DEST=$DEST
EOF

exit 0
