sbin/hammer2/cmd_debug.c: Refactor unreadable cmd_show()
[dragonfly.git] / etc / periodic / daily / 300.calendar
blobf962f9832d21a541cbc2c8b51baba14141cf0368
1 #!/bin/sh
3 # $FreeBSD: head/etc/periodic/daily/300.calendar 65843 2000-09-14 17:19:15Z brian $
5 # `calendar -a' needs to die. Why? Because it's a bad idea, particular
6 # with networked home directories, but also in general. If you want the
7 # output of `calendar' mailed to you, set up a cron job to do it,
8 # or run it from your ~/.profile or ~/.login.
11 # If there is a global system configuration file, suck it in.
13 if [ -r /etc/defaults/periodic.conf ]
14 then
15 . /etc/defaults/periodic.conf
16 source_periodic_confs
19 case "$daily_calendar_enable" in
20 [Yy][Ee][Ss])
21 echo ""
22 echo "Running calendar:"
24 calendar -a && rc=0 || rc=3;;
26 *) rc=0;;
27 esac
29 exit $rc