NetBSD/share/sushi/system/inetdconf/script1
2004-03-10 01:19:45 +00:00

19 lines
289 B
Bash
Executable File

#!/bin/sh
# $NetBSD: script1,v 1.3 2004/03/10 01:19:45 garbled Exp $
A=`grep "^#$1 .* $2[[:blank:]]" /etc/inetd.conf`
if [ -n "$A" ]; then
echo "NO"
echo "YES"
exit 0
fi
A=`grep "^$1 .* $2[[:blank:]]" /etc/inetd.conf`
if [ -n "$A" ]; then
echo "YES"
echo "NO"
exit 0
fi
echo "NO"