1129205Scognet#!/bin/sh 2129205Scognet# 3129205Scognet# 4129205Scognet# `calendar -a' needs to die. Why? Because it's a bad idea, particular 5129205Scognet# with networked home directories, but also in general. If you want the 6129205Scognet# output of `calendar' mailed to you, set up a cron job to do it, 7129205Scognet# or run it from your ~/.profile or ~/.login. 8129205Scognet# 9129205Scognet 10129205Scognet# If there is a global system configuration file, suck it in. 11129205Scognet# 12129205Scognetif [ -r /etc/defaults/periodic.conf ] 13129205Scognetthen 14129205Scognet . /etc/defaults/periodic.conf 15129205Scognet source_periodic_confs 16129205Scognetfi 17129205Scognet 18129205Scognetcase "$daily_calendar_enable" in 19129205Scognet [Yy][Ee][Ss]) 20129205Scognet echo "" 21129205Scognet echo "Running calendar:" 22129205Scognet 23129205Scognet calendar -a && rc=0 || rc=3;; 24129205Scognet 25129205Scognet *) rc=0;; 26129205Scognetesac 27129205Scognet 28129205Scognetexit $rc 29129205Scognet