#!/bin/sh
# install script taken from incubot

echo "Do you want me to add a cron entry for smmuserv?"
echo "(WARNING: This will kill any existing cron entries you have!)"
read docron
case $docron in
	y|Y)
		echo "*/10 * * * * " `pwd`/smmuserv > crontemp
		crontab crontemp
		rm crontemp
		echo "Cron entry installed."
		;;
	*)
		echo  "No cron entry added. If you want to do this manually, type '"'crontab -e'"' and"
		echo "add this line:"
		echo "*/10 * * * * "`pwd`/smmuserv
		;;
esac
