#       Copyright (c) 1990-97 Sun Microsystems, Inc.
#               All Rights Reserved
#
#
# Postinstall script for SUNWvtsvp
#
#! /bin/sh

# Determine if installation is via jumpstart

echo $BASEDIR | grep '^\/a' > /dev/null
if [ $? = 0 ]
    then
        JUMPSTART=1
    else
        JUMPSTART=0
fi

# Set base directory as appropriate for installation

if [ "$BASEDIR" = '/' ]
then
        PDIR=''
else
        PDIR="$BASEDIR"
fi

# Set path and make exportable

PATH="/bin:/usr/bin:/usr/sbin:$PDIR/bin:$PDIR/usr/bin:$PDIR/usr/sbin"
export PATH

# install 32-bit version of o1ktest

cd $PDIR/opt/SUNWvts/bin
$PDIR/opt/SUNWvts/bin/testadd o1ktest

# check to see if  64-bit VTS exists
if [ -f $PDIR/opt/SUNWvts/bin/sparcv9/vtsinfo.a ]; then
    cd $PDIR/opt/SUNWvts/bin/sparcv9
    $PDIR/opt/SUNWvts/bin/testadd o1ktest
    ln -s ../o1ktest o1ktest
    ln -s ../o1k_dma.ref
fi
