preinstall revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
32N/A#!/bin/sh
32N/A#
1549N/A# CDDL HEADER START
32N/A#
32N/A# The contents of this file are subject to the terms of the
919N/A# Common Development and Distribution License, Version 1.0 only
919N/A# (the "License"). You may not use this file except in compliance
919N/A# with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
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#
919N/A# CDDL HEADER END
919N/A#
32N/A#
32N/A#pragma ident "%Z%%M% %I% %E% SMI"
32N/A#
32N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
493N/A# Use is subject to license terms.
32N/A#
32N/AEXIT=0
1549N/A
32N/Arm -f $BASEDIR/var/volfs.tmp > /dev/null 2>&1
911N/A
1549N/A# If SUNWvolr was installed, then only enable volfs if vold would have run
1549N/A# (the user has not removed S81volmgt).
1549N/A# Otherwise this is an initial install of SUNWvolr, and volfs should be
911N/A# enabled by default.
32N/A# If this is an upgrade and volfs service was already present we should
851N/A# not change the state (the user may have disabled volfs service)
32N/A
1124N/Aif [ "$UPDATE" = yes ]; then
1124N/A if [ -f $BASEDIR/etc/rc3.d/S81volmgt ]; then
1124N/A touch $BASEDIR/var/volfs.tmp
1124N/A fi
1356N/Aelse
1356N/A touch $BASEDIR/var/volfs.tmp
1356N/Afi
32N/A
32N/Aexit $EXIT