300.calendar revision 61981
128263Spst#!/bin/sh 228263Spst# 350472Speter# $FreeBSD: head/etc/periodic/daily/300.calendar 61981 2000-06-23 01:18:31Z brian $ 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]) 2161981Sbrian if [ -f /usr/bin/calendar ] 2261981Sbrian then 2361981Sbrian echo "" 2461981Sbrian echo "Running calendar:" 2528320Spst 2661981Sbrian calendar -a 2761981Sbrian fi;; 2861981Sbrianesac 29