300.calendar revision 61981
1#!/bin/sh
2#
3# $FreeBSD: head/etc/periodic/daily/300.calendar 61981 2000-06-23 01:18:31Z brian $
4#
5# `calendar -a' needs to die. Why? Because it's a bad idea, particular
6# with networked home directories, but also in general.  If you want the
7# output of `calendar' mailed to you, set up a cron job to do it,
8# or run it from your ~/.profile or ~/.login.
9#
10
11# If there is a global system configuration file, suck it in.
12#
13if [ -r /etc/defaults/periodic.conf ]
14then
15    . /etc/defaults/periodic.conf
16    source_periodic_confs
17fi
18
19case "$daily_calendar_enable" in
20    [Yy][Ee][Ss])
21	if [ -f /usr/bin/calendar ]
22	then
23	    echo ""
24	    echo "Running calendar:"
25
26	    calendar -a
27	fi;;
28esac
29