Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / etc / periodic / daily / 410.status-uucp
CommitLineData
984263bc
MD
1#!/bin/sh
2#
3# $FreeBSD: src/etc/periodic/daily/410.status-uucp,v 1.3.2.3 2001/09/10 22:01:58 kris Exp $
1de703da 4# $DragonFly: src/etc/periodic/daily/Attic/410.status-uucp,v 1.2 2003/06/17 04:24:48 dillon Exp $
984263bc
MD
5#
6
7# If there is a global system configuration file, suck it in.
8#
9if [ -r /etc/defaults/periodic.conf ]
10then
11 . /etc/defaults/periodic.conf
12 source_periodic_confs
13fi
14
15case "$daily_status_uucp_enable" in
16 [Yy][Ee][Ss])
17 if [ ! -d /var/spool/uucp ]
18 then
19 echo '$daily_status_uucp_enable is set but /var/spool/uucp' \
20 "doesn't exist"
21 rc=2
22 elif [ ! -x /usr/bin/uustat ]
23 then
24 echo '$daily_status_uucp_enable is set but /usr/bin/uustat' \
25 "isn't executable"
26 rc=2
27 else
28 echo ""
29 echo "UUCP status:"
30
31 (echo "/usr/bin/uustat -a" | su -fm uucp ) && rc=0 || rc=3
32 fi;;
33
34 *) rc=0;;
35esac
36
37exit $rc