346N/A# The contents of this file are subject to the terms of the
1549N/A# Common Development and Distribution License, Version 1.0 only
346N/A# (the "License"). You may not use this file except in compliance
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#ident "%Z%%M% %I% %E% SMI"
346N/A# Copyright (c) 1993 by Sun Microsystems, Inc.
493N/A# install crontab file for uucp
346N/A# use crontab command if cron is running
970N/A# do nothing in the context of adding services to a multi-release server
970N/A# (in this context there is no corresponding root partition)
970N/A# Also because the default crontab now disables UUCP activity,
1356N/A# check for UUCP configuration, and don't do the install if
1356N/A# found. Note this only effects upgrades.
346N/Aps -e | egrep -s ' cron$'
346N/A# file. So if there is any content, then this is an upgrade with
1276N/A# UUCP configured, and thus we don't want to clobber their crontab.
1068N/Aif [ \( $CRONRUNNING -eq 0 \) -a \( "$BASEDIR" = "/" \) ]
1068N/A su uucp -c "crontab $CRONTABSRC"
346N/A cp $CRONTABSRC $CRONTABDEST