1*7836SJohn.Forte@Sun.COM#!/sbin/sh 2*7836SJohn.Forte@Sun.COM# 3*7836SJohn.Forte@Sun.COM# CDDL HEADER START 4*7836SJohn.Forte@Sun.COM# 5*7836SJohn.Forte@Sun.COM# The contents of this file are subject to the terms of the 6*7836SJohn.Forte@Sun.COM# Common Development and Distribution License (the "License"). 7*7836SJohn.Forte@Sun.COM# You may not use this file except in compliance with the License. 8*7836SJohn.Forte@Sun.COM# 9*7836SJohn.Forte@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7836SJohn.Forte@Sun.COM# or http://www.opensolaris.org/os/licensing. 11*7836SJohn.Forte@Sun.COM# See the License for the specific language governing permissions 12*7836SJohn.Forte@Sun.COM# and limitations under the License. 13*7836SJohn.Forte@Sun.COM# 14*7836SJohn.Forte@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 15*7836SJohn.Forte@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7836SJohn.Forte@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 17*7836SJohn.Forte@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 18*7836SJohn.Forte@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 19*7836SJohn.Forte@Sun.COM# 20*7836SJohn.Forte@Sun.COM# CDDL HEADER END 21*7836SJohn.Forte@Sun.COM# 22*7836SJohn.Forte@Sun.COM# 23*7836SJohn.Forte@Sun.COM# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24*7836SJohn.Forte@Sun.COM# Use is subject to license terms. 25*7836SJohn.Forte@Sun.COM# 26*7836SJohn.Forte@Sun.COM# 27*7836SJohn.Forte@Sun.COM# This script is used to reconfigure fabric device(s) which were configured 28*7836SJohn.Forte@Sun.COM# prior to boot. The luxadm command used below is an expert level command 29*7836SJohn.Forte@Sun.COM# and has a restrictive usage for boot time reconfiguration of fabric 30*7836SJohn.Forte@Sun.COM# devices. 31*7836SJohn.Forte@Sun.COM# 32*7836SJohn.Forte@Sun.COM# DO NOT USE the command for any other purpose. 33*7836SJohn.Forte@Sun.COM# 34*7836SJohn.Forte@Sun.COM 35*7836SJohn.Forte@Sun.COMif [ -s /etc/cfg/fp/fabric_WWN_map ] 36*7836SJohn.Forte@Sun.COMthen 37*7836SJohn.Forte@Sun.COM /usr/sbin/luxadm -e create_fabric_device \ 38*7836SJohn.Forte@Sun.COM -f /etc/cfg/fp/fabric_WWN_map 39*7836SJohn.Forte@Sun.COMelse 40*7836SJohn.Forte@Sun.COM if [ -s /etc/cfg/fp/fabric_WWN_map.old ] 41*7836SJohn.Forte@Sun.COM then 42*7836SJohn.Forte@Sun.COM /usr/sbin/luxadm -e create_fabric_device \ 43*7836SJohn.Forte@Sun.COM -f /etc/cfg/fp/fabric_WWN_map.old 44*7836SJohn.Forte@Sun.COM fi 45*7836SJohn.Forte@Sun.COMfi 46