preremove 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
#
#
# Select the correct rem_drv options to execute.
# rem_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 remove the driver
#
else
#
# On a client, modify the system files
# relative to BASEDIR
#
REM_DRV_FLAGS="-b ${BASEDIR}"
fi
# After the service provider has been removed, remove the entries for the
# We might not be able to run datadm(1m) here to cleanup the state because
# it might not be on the machine that pkgrm is invoked on so we run datadm
# only if {BASEDIR} is "/".
if [ "${BASEDIR}" = "/" ]; then
#
# On a running system, modify the
# dat.conf file using datadm
#
if [ -r "${SPCONF}" ]; then
if [ $? -ne 0 ]; then
echo "datadm -r failed"
exit 1
fi
exit 0
else
echo "SUNWudaplt.conf does not exist. Cannot do datadm -r"
exit 1
fi
else
#
# If not on a running system (i.e, running on a client), modify
# the dat.conf file relative to $BASEDIR
#
rm -f $TMPDATCONF
if [ $? -eq 0 ]; then
else
exit 1
fi
fi
exit 0