#!/bin/sh
test -f /etc/ipac.conf && test -f /usr/sbin/fetchipac || exit 0

# summarize the statistics for the week before last into one file
/usr/sbin/ipacsum -r -t "the week before last week" > /dev/null

# summarize the statistics for the month before last into one file
/usr/sbin/ipacsum -r -t "the month 2 months ago" > /dev/null

# summarize the statistics for the year before last into one file
/usr/sbin/ipacsum -r -t "the year 2 years ago" > /dev/null

