#! /bin/sh

if	(ypcat servers; cat /etc/services) 2> /dev/null | grep -w ntp | grep 123/udp
then	:
else	echo ""
	echo "	Failed to find 'ntp 123/udp' in /etc/services (or NIS)."
	echo ""
	echo "	Please rectify this (e.g. see your sys admin) before proceeding"
	echo "	(If using YP, ensure that the tables are pushed !)"
	echo ""
	if	(ypcat servers; cat /etc/services) 2> /dev/null | grep -w ntp | grep 123/tcp
	then	echo "(The std Sun /etc/services has ntp in as tcp rather than udp !!)"
		echo ""
	fi
	false
fi
