preinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
680N/A#!/sbin/sh
680N/A#
680N/A# CDDL HEADER START
680N/A#
680N/A# The contents of this file are subject to the terms of the
680N/A# Common Development and Distribution License, Version 1.0 only
680N/A# (the "License"). You may not use this file except in compliance
680N/A# with the License.
680N/A#
680N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
680N/A# or http://www.opensolaris.org/os/licensing.
680N/A# See the License for the specific language governing permissions
680N/A# and limitations under the License.
680N/A#
680N/A# When distributing Covered Code, include this CDDL HEADER in each
680N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
680N/A# If applicable, add the following below this CDDL HEADER, with the
680N/A# fields enclosed by brackets "[]" replaced with your own identifying
680N/A# information: Portions Copyright [yyyy] [name of copyright owner]
680N/A#
680N/A# CDDL HEADER END
964N/A#
680N/A#
680N/A# Copyright (c) 1999 by Sun Microsystems, Inc.
680N/A# All rights reserved.
680N/A#
680N/A#ident "%Z%%M% %I% %E% SMI"
964N/A#
964N/A
680N/A#
964N/A# If /boot/solaris/drivers directory doesn't exist but the old location
964N/A# /platform/i86pc/boot is there, copy all the files to the new
964N/A# location /boot and remove the old ones
680N/A#
680N/AOLDBOOT=/platform/i86pc/boot
964N/AOLDBOOTDIR=${BASEDIR}${OLDBOOT}
964N/ANEWBOOTDIR=${BASEDIR}/boot
964N/A
683N/Aif [ ! -d ${NEWBOOTDIR}/solaris/drivers -a -d ${OLDBOOTDIR} ] ;
683N/Athen
680N/A if [ ! -d ${NEWBOOTDIR} ] ;
964N/A then
964N/A mkdir -p $NEWBOOTDIR > /dev/null 2>&1
964N/A fi
964N/A cd $OLDBOOTDIR
964N/A find . -depth -print | cpio -pdm $NEWBOOTDIR >/dev/null 2>&1
964N/Afi
964N/A
964N/Aexit 0
680N/A