#!/usr/bin/sh

# ident "%Z%%M% %I% %E% Copyright SMI"

#
# Copyright %G% Sun Microsystems, Inc.  All Rights Reserved
# File used to build a "Solstice X.500" product.
# Written by Willy-Francois Poulet.
#

#
# Stop the daemon
#

/etc/rc2.d/S94x500client stop

#
# Modify xom.ini
#

OSIROOT=/var/opt/SUNWconn/OSIROOT

ed ${OSIROOT}/conf/xom.ini << EOF > /dev/null
1,$ g/^IPC-USER CXDS.*$/d
w
q
EOF

if [ ! -s ${OSIROOT}/conf/xom.ini ]
then
	rm ${OSIROOT}/conf/xom.ini 2> /dev/null
fi

# install msh includes if not there
   if [ -f /var/opt/SUNWconn/OSIROOT/x500/conf/mhs.added ]
   then  
      rm -f /var/opt/SUNWconn/OSIROOT/x500/conf/mhs.added
      rm -f /opt/SUNWconn/include/mhs
   fi

#
# done
#

exit 0

