#! /sbin/sh
########
#  Product: PCIINFO
#  checkinstall
########
#
# (c)Copyright 2012 Hewlett-Packard Development Company, L.P.
# @(#)
#
########

    UTILS="/usr/lbin/sw/control_utils"
    if [[ ! -f $UTILS ]]
    then
        echo "ERROR: Cannot find $UTILS"
        exit 1
    fi
    . $UTILS
    exitval=$SUCCESS                           # Anticipate success


################################################################################
#  Ensure that an alternate root install is not attempted.  Exclude
#  the product from installation if this happens.

    if [[ $SW_ROOT_DIRECTORY != "/" ]]
    then
        msg ERROR "$PRODUCT cannot be installed in an alternate root environment!"
        exitval=$ERROR
    fi
    exit $exitval
