postinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# CDDL HEADER START
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# The contents of this file are subject to the terms of the
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# Common Development and Distribution License, Version 1.0 only
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# (the "License"). You may not use this file except in compliance
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# with the License.
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# or http://www.opensolaris.org/os/licensing.
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maeder# See the License for the specific language governing permissions
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# and limitations under the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# fields enclosed by brackets "[]" replaced with your own identifying
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# information: Portions Copyright [yyyy] [name of copyright owner]
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# CDDL HEADER END
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder# ident "%Z%%M% %I% %E% SMI"
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
9dac90ec2be2a72e03893095461960d483fe2fc2Christian Maeder# Use is subject to license terms.
7bdc9c0783f9c8c830346e6baeac9306eee1a622Christian Maeder# SUNWses postinstall script
8410667510a76409aca9bb24ff0eda0420088274Christian Maederif test ! -f ${DEVLINKTB} -o ! -w ${DEVLINKTB}; then
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich echo "SUNWses: file ${DEVLINKTB} is missing/inacessible." >&2
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# rem_devlink - removes an entry from ${DEVLINKTB}
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder grep -v "^$PATTERN $LINK$" ${DEVLINKTB} >$TMP.devlink
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian Maeder # Must use 'cp' here in order to preserve the original
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maederrem_devlink 'type=ddi_pseudo;name=ses' 'es/ses\\N0'
c3053d57f642ca507cdf79512e604437c4546cb9Christian Maeder${ADDDRV} -b ${BASEDIR} -n -m '* 0666 bin bin' -i '"scsiclass,0d"' ses