Remove UUCP support. Note: /usr/src/gnu/libexec/uucp and /usr/src/libexec/uucpd
[dragonfly.git] / etc / periodic / daily / 300.calendar
1 #!/bin/sh
2 #
3 # $FreeBSD: src/etc/periodic/daily/300.calendar,v 1.3.2.2 2000/09/20 02:46:15 jkh Exp $
4 # $DragonFly: src/etc/periodic/daily/300.calendar,v 1.2 2003/06/17 04:24:48 dillon Exp $
5 #
6 # `calendar -a' needs to die. Why? Because it's a bad idea, particular
7 # with networked home directories, but also in general.  If you want the
8 # output of `calendar' mailed to you, set up a cron job to do it,
9 # or run it from your ~/.profile or ~/.login.
10 #
11
12 # If there is a global system configuration file, suck it in.
13 #
14 if [ -r /etc/defaults/periodic.conf ]
15 then
16     . /etc/defaults/periodic.conf
17     source_periodic_confs
18 fi
19
20 case "$daily_calendar_enable" in
21     [Yy][Ee][Ss])
22         echo ""
23         echo "Running calendar:"
24
25         calendar -a && rc=0 || rc=3;;
26
27     *)  rc=0;;
28 esac
29
30 exit $rc