3 # $FreeBSD: src/etc/periodic/monthly/200.accounting,v 1.4.2.5 2002/05/21 03:17:08 brian Exp $
4 # $DragonFly: src/etc/periodic/monthly/200.accounting,v 1.2 2003/06/17 04:24:48 dillon Exp $
7 # If there is a global system configuration file, suck it in.
9 if [ -r /etc
/defaults
/periodic.conf
]
11 .
/etc
/defaults
/periodic.conf
17 case "$monthly_accounting_enable" in
27 zcat
$W.0.gz
> $W.0 || rc
=1
31 bzcat
$W.0.bz2
> $W.0 || rc
=1
33 echo '$monthly_accounting_enable is set but' \
41 echo "Doing login accounting:"
43 rc
=$
(ac
-p -w $W.0 |
sort -nr +1 |
tee /dev
/stderr |
wc -l)
46 [ $remove = YES
] && rm -f $W.0;;