#!/bin/sh
pollfct(){
hour=`date +%H`
#echo hour = $hour
while true
do
	read site liste
	#echo site = $site
	#echo liste = $liste
	if [ "$site" = "" ] ; then
		break
	else
		for i in $liste
		do
			if [ "$i" = "$hour" ] ; then
				mkdir -p /var/spool/uucp/$site/C.
				touch /var/spool/uucp/$site/C./C.${site}00000
				break
			fi
		done
	fi
done
	
}
if [ -f /etc/uucp/oldconfig/Poll ] ; then
	pollfct < /etc/uucp/oldconfig/Poll
elif [ -f /usr/lib/uucp/Poll ] ; then
	pollfct </usr/lib/uucp/Poll
fi


