1#!/bin/sh 2# 3# $FreeBSD: src/etc/periodic/daily/300.calendar,v 1.3.2.2 2000/09/20 02:46:15 jkh Exp $ 4# $DragonFly: src/etc/periodic/daily/300.calendar,v 1.2 2003/06/17 04:24:48 dillon Exp $ 5# 6# `calendar -a' needs to die. Why? Because it's a bad idea, particular 7# with networked home directories, but also in general. If you want the 8# output of `calendar' mailed to you, set up a cron job to do it, 9# or run it from your ~/.profile or ~/.login. 10# 11 12# If there is a global system configuration file, suck it in. 13# 14if [ -r /etc/defaults/periodic.conf ] 15then 16 . /etc/defaults/periodic.conf 17 source_periodic_confs 18fi 19 20case "$daily_calendar_enable" in 21 [Yy][Ee][Ss]) 22 echo "" 23 echo "Running calendar:" 24 25 calendar -a && rc=0 || rc=3;; 26 27 *) rc=0;; 28esac 29 30exit $rc 31