#! /usr/bin/sh
#
# ident	"@(#)request 1.1     04/12/21 SMI"
#
# Copyright (c) 2004 by Sun Microsystems, Inc.
# All rights reserved.
#
# Permitted exit codes:
# 0 = success, 1 = fatal error, 2 = warning (install continues),
# 3 = install suspended cleanly, 10/20 = reboot after install all/current
#

# Set the install root directory for lookup; use PKG_INSTALL_ROOT if set:
iroot=${PKG_INSTALL_ROOT:-$BASEDIR}

PATH="/usr/bin:/usr/sbin"
export PATH

printf "\n`gettext \
	'It is strongly recommended that cediag(1M) be run on a daily basis.  This\ninstallation will place an entry in the root user crontab file which will run\ncediag at midnight every night.'`\n"

TEXT=`gettext "Do you wish to schedule cediag in cron?"`
SUNWcest_CRONTAB=`ckyorn -p "${TEXT}"`
echo "SUNWcest_CRONTAB=${SUNWcest_CRONTAB}" > $1

exit 0 # successful checkinstall run
