#!/sbin/sh
########
#  Product: Thunderbird
#  Fileset: TBIRD-COM
#  unconfigure
########
#
# (c) Copyright 2006 Hewlett-Packard Development Company, L.P.
#
########

typeset -i exitval

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


#################################################################
#
# Update /etc/PATH, deleting /opt/thunderbird
#

mod_pathfile -d P /opt/thunderbird

exitval=$?
if [ $exitval -ne $SUCCESS -a $exitval -ne $WARNING ] ; then
   echo "WARNING: Could not delete /opt/thunderbird from /etc/PATH."
   exitval=$WARNING
else
   exitval=$SUCCESS
fi

exit $exitval
