#! /bin/sh
# $Id$
# remove for swhoisd
# Copyright (c) 2001 Dan Anderson <dan@drydog.com> All rights reserved.
# See file COPYING for license.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
PATH="/usr/bin:/usr/sbin"
export PATH
INETDCONF=/etc/inetd.conf

if [ ! -f $INETDCONF ] ; then
        grep -v swhoisd $INETDCONF > $INETDCONF.new 2> /dev/null
	cp -p $INETDCONF $INETDCONF.old
        cat $INETDCONF.new > $INETDCONF
        rm -f $INETDCONF.new
fi
