#!/bin/sh
#
# hourly - hourly cleanup of the system.

# Write the disciplined time back to the hardware clock.
#XXX#test -f /etc/tsd.conf && calcmos

# Continue with opt and local scripts (if any).
if [ -f /usr/lib/packages ]
then
    IFS=/
    while read package rest <&9
    do
	hourly="/opt/$package/etc/hourly"
	test -f "$hourly" && sh "$hourly" 9<&-
    done 9</usr/lib/packages
fi
test -f /usr/local/etc/hourly && sh /usr/local/etc/hourly
test -f /var/etc/hourly && sh /var/etc/hourly
exit 0

#
# $PchId: hourly,v 1.2 2003/12/18 14:37:29 philip Exp $
