version 1.22, 2009/05/18 19:57:56 |
version 1.23, 2009/05/25 21:31:24 |
|
|
# |
# |
# $OpenBSD$ |
# $OpenBSD$ |
# |
# |
|
# For local additions, create the file /etc/weekly.local. |
|
# To get section headers, use the function next_part in weekly.local. |
|
# |
umask 022 |
umask 022 |
|
|
PARTOUT=/var/log/weekly.part |
PARTOUT=/var/log/weekly.part |
|
|
next_part "Rebuilding whatis databases:" |
next_part "Rebuilding whatis databases:" |
/usr/libexec/makewhatis |
/usr/libexec/makewhatis |
|
|
# If LOGINACCOUNTING is set to 1 in the environment, report user |
|
# accounting information |
|
next_part "Doing login accounting:" |
next_part "Doing login accounting:" |
[ "X$LOGINACCOUNTING" = X1 ] && { |
[ "X$LOGINACCOUNTING" = X1 ] && { |
ac -p | sort -nr -k 2 |
ac -p | sort -nr -k 2 |