postinstall revision 1b349f08205ae4c89d0cbd3d8906d947a17ce56d
9eb24f1f84885d5c2e51a7f675264db398c31af7Tinderbox User#!/sbin/sh
7bd455641455950eff7d21be652c8142b134d32fTinderbox User#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
8cbf3b6fc35091abde426930f2eadb8f53476c98Evan Hunt# Common Development and Distribution License, Version 1.0 only
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# (the "License"). You may not use this file except in compliance
74cb99072c4b0ebd2ccafcfa284288fa760f7a1aMark Andrews# with the License.
bff64bf12b58a6f80e740e94f2e42a32df18113aEvan Hunt#
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7c74e180c206e6ed99e8beb820da5f399d845c3eDavid Lawrence# or http://www.opensolaris.org/os/licensing.
2baa66562a2f119edffded961d3391f87ff98ec0Ondřej Surý# See the License for the specific language governing permissions
03e200df5dc283f24a6a349f0b31d3eab26da893Mark Andrews# and limitations under the License.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# When distributing Covered Code, include this CDDL HEADER in each
63dd46733010bb9622810faa17d88c3e3c28b730Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# If applicable, add the following below this CDDL HEADER, with the
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# fields enclosed by brackets "[]" replaced with your own identifying
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff#
d901b2252d664a5b96bae117416f8ee822dc6691Stephen Jacob# CDDL HEADER END
df3c4c7988b9bae7d121a8ac9ed17a23366a948dDavid Lawrence#
df3c4c7988b9bae7d121a8ac9ed17a23366a948dDavid Lawrence#
df3c4c7988b9bae7d121a8ac9ed17a23366a948dDavid Lawrence# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
20256cbc1570e344793555b8c2f43a25bb38e373Mark Andrews# Use is subject to license terms.
20256cbc1570e344793555b8c2f43a25bb38e373Mark Andrews#
8b56b8956fc1e6c70efacb4f71db28d0d1f0c577Mark Andrews#pragma ident "%Z%%M% %I% %E% SMI"
8b56b8956fc1e6c70efacb4f71db28d0d1f0c577Mark Andrews#
f4ea363e3acc321b24ffe95a64a583e8041d6fd5Mark Andrews# SUNWcar.u postinstall script
8b56b8956fc1e6c70efacb4f71db28d0d1f0c577Mark Andrews#
8b56b8956fc1e6c70efacb4f71db28d0d1f0c577Mark Andrews
8b56b8956fc1e6c70efacb4f71db28d0d1f0c577Mark AndrewsPATH="/usr/bin:/usr/sbin:${PATH}"
8b56b8956fc1e6c70efacb4f71db28d0d1f0c577Mark Andrewsexport PATH
914eeb33149a0008e26741d9e7d89dcd6f8b6d0bMark Andrews
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffEXIT=0
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffLIBC_MOE_32=`moe -32 '/platform/sun4u-us3/lib/libc_psr/$HWCAP'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif [ -n "$LIBC_MOE_32" ]; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mount | egrep -s "^/platform/sun4u-us3/lib/libc_psr.so.1 on "
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if [ $? -ne 0 ]; then
3d776d762914d1b675b4fd49728ce353ccf6f77eBrian Wellington mount -O -F lofs $LIBC_MOE_32 /platform/sun4u-us3/lib/libc_psr.so.1
5b7abbef511cea0b568be0bc8d5b3120a0b9034dEvan Hunt fi
6b66ee9147e940572a0e873ecbd67456ccb85c39Mark Andrewsfi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark AndrewsLIBC_MOE_64=`moe -64 '/platform/sun4u-us3/lib/sparcv9/libc_psr/$HWCAP'`
67247b4a8304bac790648a351a95b8b0f4c512a6Mark Andrewsif [ -n "$LIBC_MOE_64" ]; then
9ed37e8b9ccd53bc37b546fffe487b9547dda3a0Mark Andrews mount | egrep -s "^/platform/sun4u-us3/lib/sparcv9/libc_psr.so.1 on "
9ed37e8b9ccd53bc37b546fffe487b9547dda3a0Mark Andrews if [ $? -ne 0 ]; then
9ed37e8b9ccd53bc37b546fffe487b9547dda3a0Mark Andrews mount -O -F lofs $LIBC_MOE_64 /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews fi
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrewsfi
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrewsexit $EXIT
11dbf2fc38eea8c5d3fe7123718bf197a8bb2e6bMark Andrews