128263Spst#!/bin/sh 228263Spst# 350472Speter# $FreeBSD$ 428263Spst# 528263Spst# `calendar -a' needs to die. Why? Because it's a bad idea, particular 628263Spst# with networked home directories, but also in general. If you want the 728263Spst# output of `calendar' mailed to you, set up a cron job to do it, 828263Spst# or run it from your ~/.profile or ~/.login. 928263Spst# 1028263Spst 1161981Sbrian# If there is a global system configuration file, suck it in. 1261981Sbrian# 1361981Sbrianif [ -r /etc/defaults/periodic.conf ] 1461981Sbrianthen 1561981Sbrian . /etc/defaults/periodic.conf 1661981Sbrian source_periodic_confs 1761981Sbrianfi 1828263Spst 1961981Sbriancase "$daily_calendar_enable" in 2061981Sbrian [Yy][Ee][Ss]) 2165843Sbrian echo "" 2265843Sbrian echo "Running calendar:" 2328320Spst 2465843Sbrian calendar -a && rc=0 || rc=3;; 2565843Sbrian 2665843Sbrian *) rc=0;; 2761981Sbrianesac 2865843Sbrian 2965843Sbrianexit $rc 30