1102644Snectar#!/bin/sh 2233294Sstas# 3233294Sstas# $FreeBSD$ 4233294Sstas# 5102644Snectar# `calendar -a' needs to die. Why? Because it's a bad idea, particular 6233294Sstas# with networked home directories, but also in general. If you want the 7233294Sstas# output of `calendar' mailed to you, set up a cron job to do it, 8233294Sstas# or run it from your ~/.profile or ~/.login. 9102644Snectar# 10233294Sstas 11233294Sstas# If there is a global system configuration file, suck it in. 12102644Snectar# 13233294Sstasif [ -r /etc/defaults/periodic.conf ] 14233294Sstasthen 15233294Sstas . /etc/defaults/periodic.conf 16102644Snectar source_periodic_confs 17233294Sstasfi 18233294Sstas 19233294Sstascase "$daily_calendar_enable" in 20102644Snectar [Yy][Ee][Ss]) 21233294Sstas echo "" 22233294Sstas echo "Running calendar:" 23233294Sstas 24233294Sstas calendar -a && rc=0 || rc=3;; 25233294Sstas 26233294Sstas *) rc=0;; 27233294Sstasesac 28233294Sstas 29233294Sstasexit $rc 30233294Sstas