postinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
#pragma ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
export PATH
#
# Driver info
#
DRVPERM='* 0644 root sys'
#
# Select the correct add_drv options to execute.
# add_drv touches /reconfigure to cause the
# next boot to be a reconfigure boot.
#
if [ "${BASEDIR}" = "/" ]; then
#
# On a running system, modify the
# system files and attach the driver
#
else
#
# On a client, modify the system files
# relative to BASEDIR
#
ADD_DRV_FLAGS="-b ${BASEDIR}"
fi
#
# Make sure add_drv has not been previously executed
# before attempting to add the driver.
#
if [ $? -ne 0 ]; then
if [ $? -ne 0 ]; then
echo "postinstall: add_drv $DRV failed\n" >&2
exit 1
fi
fi
#
# On a running system, register the service provider using datadm.
# If on a client system, nothing more needs to be done here.
#
if [ "${BASEDIR}" = "/" ]; then
if [ $? -eq 0 ]; then
if [ $? -ne 0 ]; then
echo "Consult the Solaris System Admin Guide" \
"on how to manually configure the uDAPL Service" \
"Provider for Tavor"
fi
exit 0
else
echo "datadm -a failed"
exit 1
fi
fi
exit 0