postinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
14134N/A#!/bin/sh
14134N/A#
14134N/A# CDDL HEADER START
14134N/A#
14134N/A# The contents of this file are subject to the terms of the
18617N/A# Common Development and Distribution License, Version 1.0 only
14318N/A# (the "License"). You may not use this file except in compliance
14318N/A# with the License.
14318N/A#
17185N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15508N/A# or http://www.opensolaris.org/os/licensing.
14318N/A# See the License for the specific language governing permissions
14134N/A# and limitations under the License.
14134N/A#
16913N/A# When distributing Covered Code, include this CDDL HEADER in each
16913N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16913N/A# If applicable, add the following below this CDDL HEADER, with the
16913N/A# fields enclosed by brackets "[]" replaced with your own identifying
16913N/A# information: Portions Copyright [yyyy] [name of copyright owner]
16913N/A#
16913N/A# CDDL HEADER END
16913N/A#
14134N/A#
18688N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
18688N/A# Use is subject to license terms.
14134N/A#
16913N/A#ident "%Z%%M% %I% %E% SMI"
15944N/A#
14134N/A# postinstall - Add sysidnfs4 to sysidconfig app list
14134N/A#
14134N/A
14134N/A#
16401N/A# Add sysidnfs4 to the sysidconfig fired apps so the user will
15205N/A# be prompted for NFSv4 id map domain upon first system reboot.
14134N/A#
14134N/A# NOTE: This will/should be replaced by a future incantation of
14134N/A# the sysidtools.
15798N/A#
16307N/Aif [ -x /usr/sbin/sysidnfs4 ]; then
16401N/A /usr/sbin/sysidconfig -b "${PKG_INSTALL_ROOT}" -l |\
14134N/A /usr/bin/grep -s sysidnfs4 >/dev/null
14134N/A
14134N/A if [ $? -ne 0 ]; then
15205N/A /usr/sbin/sysidconfig -b "${PKG_INSTALL_ROOT}" \
15205N/A -a /usr/sbin/sysidnfs4
15205N/A fi
15205N/Aelse
15205N/A /usr/bin/grep -s sysidnfs4 ${PKG_INSTALL_ROOT}/etc/.sysidconfig.apps \
14134N/A >/dev/null
14134N/A if [ $? -ne 0 ]; then
14134N/A echo /usr/sbin/sysidnfs4 >> \
14134N/A ${PKG_INSTALL_ROOT}/etc/.sysidconfig.apps
14134N/A fi
14134N/Afi
14134N/Aexit 0
16913N/A