## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
  if [ "`vercmp $2 4.0`" -lt 0 ]
  then
    echo "Restart crond, since you're upgrading to the dcron 4.x series."
  fi
  grep -q cron.tenminutes /var/spool/cron/root
  if [ $? = 1 ]
  then
	  echo "0,10,20,30,40,50 * * * *	/usr/sbin/run-cron /etc/cron.tenminutes" >> /var/spool/cron/root
  fi
  if [ ! -e /etc/cron.tenminutes ]
  then
	  mkdir -p /etc/cron.tenminutes
  fi

}

post_install() {
	post_upgrade
}
# vim:set ts=2 sw=2 et: