1997-08-16 17:04:02 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1997-08-16 17:04:02 +00:00
|
|
|
#
|
|
|
|
|
1998-02-09 11:36:43 +00:00
|
|
|
W=/var/log/wtmp
|
1999-01-28 20:03:31 +00:00
|
|
|
if [ -f ${W}.0 ] ; then
|
1998-02-09 11:36:43 +00:00
|
|
|
if [ -x /usr/sbin/ac ] ; then
|
|
|
|
echo ""
|
|
|
|
echo "Doing login accounting:"
|
|
|
|
|
1999-01-28 20:03:31 +00:00
|
|
|
ac -p -w ${W}.0 | sort -nr +1
|
1998-02-09 11:36:43 +00:00
|
|
|
fi
|
1997-08-16 17:04:02 +00:00
|
|
|
fi
|