fc-fabric revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
110N/A#!/sbin/sh
110N/A#
110N/A# CDDL HEADER START
110N/A#
110N/A# The contents of this file are subject to the terms of the
110N/A# Common Development and Distribution License (the "License").
110N/A# You may not use this file except in compliance with the License.
110N/A#
110N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
110N/A# or http://www.opensolaris.org/os/licensing.
110N/A# See the License for the specific language governing permissions
110N/A# and limitations under the License.
110N/A#
110N/A# When distributing Covered Code, include this CDDL HEADER in each
110N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
110N/A# If applicable, add the following below this CDDL HEADER, with the
110N/A# fields enclosed by brackets "[]" replaced with your own identifying
110N/A# information: Portions Copyright [yyyy] [name of copyright owner]
110N/A#
110N/A# CDDL HEADER END
1625N/A#
110N/A#
110N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
110N/A# Use is subject to license terms.
110N/A#
1303N/A#
110N/A# This script is used to reconfigure fabric device(s) which were configured
110N/A# prior to boot. The luxadm command used below is an expert level command
110N/A# and has a restrictive usage for boot time reconfiguration of fabric
1303N/A# devices.
1303N/A#
110N/A# DO NOT USE the command for any other purpose.
1258N/A#
110N/A
110N/Aif [ -s /etc/cfg/fp/fabric_WWN_map ]
110N/Athen
110N/A /usr/sbin/luxadm -e create_fabric_device \
110N/A -f /etc/cfg/fp/fabric_WWN_map
1625N/Aelse
110N/A if [ -s /etc/cfg/fp/fabric_WWN_map.old ]
110N/A then
181N/A /usr/sbin/luxadm -e create_fabric_device \
110N/A -f /etc/cfg/fp/fabric_WWN_map.old
110N/A fi
110N/Afi
110N/A