#! /sbin/sh
########
#  Product: InternetSrvcs
#  Fileset: INETSVCS-BOOT
#  unconfigure
#  @(#) $Revision: 1.2.212.1 $
########
#
#  (c) Copyright Hewlett-Packard Company  1993, 1994
#
#######
#
# Standard initialization
#

exitval=0				# Anticipate success


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

#
#
#######
#
# Start of INETSVCS-BOOT unconfigure process
#

daemons="xntpd bootpd rbootd" 
files="/etc/ntp.drift /etc/ntp.conf /etc/ntp.keys /etc/bootptab /etc/boottab"

#
#       Kill daemons
#

for i in $daemons
do
       if ! kill_named_procs $i
       then
           echo "WARNING: Could not kill $i process."
	   exitval=2
       fi
done

for i in $files
do
	rm -f $i
done

rm -rf /var/tmp/ntp

exit $exitval
