98N/A# The contents of this file are subject to the terms of the
98N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A# See the License for the specific language governing permissions
98N/A# and limitations under the License.
98N/A# When distributing Covered Code, include this CDDL HEADER in each
98N/A# If applicable, add the following below this CDDL HEADER, with the
98N/A# fields enclosed by brackets "[]" replaced with your own identifying
98N/A# information: Portions Copyright [yyyy] [name of copyright owner]
98N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
98N/A# Use is subject to license terms.
98N/A#ident "%Z%%M% %I% %E% SMI"
98N/Aif [ "$UPDATE" = "yes" ]; then
98N/A BASEPREFIX=`echo $BASEDIR | sed "s/\//_/g"`
98N/A LPFILENAME=`echo sunwpsr_lpsched"$BASEPREFIX" | cut -c 1-256`
98N/A PPDFILENAME=`echo sunwpsr_ppd_cache_update"$BASEPREFIX" | cut -c 1-256`
98N/A LPTMPFILE=/tmp/$LPFILENAME
98N/A PPDTMPFILE=/tmp/$PPDFILENAME
98N/A if [ -f $LPTMPFILE ] ; then
98N/A if [ -f $PPDTMPFILE ] ; then
98N/A # If we are upgrading a system with smf(5) already installed, then we
98N/A # won't take any action. Otherwise, if there are local print queues,
98N/A # the service was enabled, preserve that.
183N/A # If we are upgrading a system with ppd-cache-update service already
183N/A # installed, then don't take any action in postinstall script.