#!/bin/sh
#
#     tiger - A UN*X security checking system
#     Copyright (C) 1993 Douglas Lee Schales, David K. Hess, David R. Safford
#
#     Please see the file `COPYING' for the complete copyright notice.
#
# default/gen_inetd - 06/14/93
#
#-----------------------------------------------------------------------------
#
# If run directly for testing purposes
[ -z "$GREP" ] && GREP=`which grep`
[ -z "$SORT" ] && SORT=`which grep`
[ -z "$WORKDIR" ] && WORKDIR=/tmp


$GREP -v '^#' /etc/inetd.conf |
$SORT > $WORKDIR/etc_inetd.$$
echo "/etc/inetd.conf" > $WORKDIR/etc_inetd.$$.src
echo $WORKDIR/etc_inetd.$$
