#
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)preinstall	1.1	06/05/29 SMI"

# If we are now installing scheduler on this system for the first
# time, we will need to call svcadm to enable the new service. We
# must not do this if scheduler is already installed, as the user may
# have intentionally disabled it. Here we touch scheduler.tmp as a
# way of telling our matching postinstall script that it should
# update /var/svc/profile/upgrade.

rm -f $BASEDIR/tmp/scheduler.tmp
if [ ! -f $BASEDIR/var/svc/manifest/system/scheduler.xml ] ; then
	touch $BASEDIR/tmp/scheduler.tmp
fi
