postinstall revision 2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5
160N/A#
160N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
160N/A# Use is subject to license terms.
160N/A#
160N/A# CDDL HEADER START
160N/A#
160N/A# The contents of this file are subject to the terms of the
160N/A# Common Development and Distribution License, Version 1.0 only
160N/A# (the "License"). You may not use this file except in compliance
160N/A# with the License.
160N/A#
160N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
160N/A# or http://www.opensolaris.org/os/licensing.
160N/A# See the License for the specific language governing permissions
160N/A# and limitations under the License.
160N/A#
160N/A# When distributing Covered Code, include this CDDL HEADER in each
160N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
160N/A# If applicable, add the following below this CDDL HEADER, with the
5680N/A# fields enclosed by brackets "[]" replaced with your own identifying
160N/A# information: Portions Copyright [yyyy] [name of copyright owner]
160N/A#
5680N/A# CDDL HEADER END
160N/A#
5680N/A# ident "%Z%%M% %I% %E% SMI"
160N/A
160N/Aif [ "$UPDATE" = yes ]; then
160N/A cat >> ${PKG_INSTALL_ROOT:-/}/var/svc/profile/upgrade <<-EOF
160N/A # We are deleting and reimporting dcs's manifest, because we
618N/A # need to change the restarter.
844N/A dcsfmri="svc:/platform/sun4u/dcs:default"
844N/A dcsmani="/var/svc/manifest/platform/sun4u/dcs.xml"
160N/A restarter=\`svcprop -c -p general/restarter \$dcsfmri 2>&1\`
1258N/A case \$restarter in
160N/A *network/inetd:default)
2899N/A en=\`svcprop -c -p general/enabled \$dcsfmri\`
2899N/A svccfg delete -f \$dcsfmri
5680N/A svccfg import \$dcsmani
5680N/A if [ \$en = "true" ]; then
160N/A svcadm enable \$dcsfmri
160N/A fi
160N/A ;;
160N/A esac
160N/AEOF
160N/Afi
160N/A
160N/Aexit 0
160N/A