#!/bin/ksh
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
# pkg720 src/packages/X11/Dt/rte/root/X11.Dt.rte.unconfig.sh 1.7 
#  
# Licensed Materials - Property of IBM 
#  
# COPYRIGHT International Business Machines Corp. 1994,1998 
# All Rights Reserved 
#  
# US Government Users Restricted Rights - Use, duplication or 
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 
#  
# IBM_PROLOG_END_TAG 
# @(#)75	1.7  src/packages/X11/Dt/rte/root/X11.Dt.rte.unconfig.sh, pkgxcde, pkg720 1/7/98 12:00:00
#
#   COMPONENT_NAME: pkgxcde
#
#   FUNCTIONS: none
#
#   ORIGINS: 27
#
#
#   (C) COPYRIGHT International Business Machines Corp. 1994
#   All Rights Reserved
#   Licensed Materials - Property of IBM
#   US Government Users Restricted Rights - Use, duplication or
#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
# FUNCTION: script called from deinstal to automatically stop CDE
#	    Desktop.
#
# RETURN VALUE DESCRIPTION:
#				nonzero return code if failed
#
#
# unconfigure the dtspc daemon
#
/usr/dt/install/configMin -d
if [ $? != 0 ]; then
   exit 1
fi
#
# unconfigure the desktop
# 
/usr/dt/install/configRun -d
if [ $? != 0 ]; then
   exit 1
fi
#
# unconfigure desktop login
#
/usr/dt/bin/dtconfig -d
if [ $? != 0 ]; then
   exit 1
fi
#
# remove the desktop subsystem
#
rmssys -s dtsrc
if [ $? != 0 ]; then
   exit 1
fi
#
# remove the /var/dt directories
#
rm -rf /var/dt > /dev/null 2>&1
if [ $? != 0 ]; then
   exit 1
fi