0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2362N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
2362N/A# Use is subject to license terms.
0N/A#ident "%Z%%M% %I% %E% SMI"
0N/A# If appropriate, enable this service.
0N/ABASEPREFIX=`echo $BASEDIR | sed "s/\//_/g"`
0N/ALPFILENAME=`echo sunwpsr_lpsched"$BASEPREFIX" | cut -c 1-256`
0N/ALPTMPFILE=/tmp/$LPFILENAME
0N/Aif [ -f $LPTMPFILE ]; then
0N/APPDFILENAME=`echo sunwpsr_ppd_cache_update"$BASEPREFIX" | cut -c 1-256`
0N/APPDTMPFILE=/tmp/$PPDFILENAME
0N/Aif [ -f $PPDTMPFILE ] ; then
0N/A # Enable the ppd-cache-update service.
0N/A # Ensure pre-existing printer configuration files with an
0N/A # old system PPD file delivery location are updated to
0N/A # reflect the newest location of PPD files.
0N/A if [ -d $NEW_PATH ] ; then
0N/A if [ $? -eq 0 ] ; then
0N/A -e "s;${OLD_PATH}/foomatic;${NEW_PATH}/SUNWfoomatic;g" \
0N/A -e "s;${OLD_PATH}/gimp;${NEW_PATH}/SUNWgimp;g" \
0N/A -e "s;${OLD_PATH}/hpijs;${NEW_PATH}/SUNWhpijs;g" \
0N/A# This works around the problem of legacy cleanup service removal until
0N/Aif [ "${PKG_INSTALL_ROOT:-/}" != "/" ] ; then