|
|
@ -1,12 +1,10 @@ |
|
|
|
#!/bin/sh - |
|
|
|
# |
|
|
|
# $OpenBSD: daily,v 1.56 2006/10/26 12:20:55 ajacoutot Exp $ |
|
|
|
# $OpenBSD: daily,v 1.57 2009/05/03 17:16:12 schwarze Exp $ |
|
|
|
# From: @(#)daily 8.2 (Berkeley) 1/25/94 |
|
|
|
# |
|
|
|
umask 022 |
|
|
|
|
|
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin |
|
|
|
bak=/var/backups |
|
|
|
|
|
|
|
sysctl -n kern.version |
|
|
|
uptime |
|
|
@ -58,26 +56,6 @@ if [ -d /var/rwho -a ! -L /var/rwho ] ; then |
|
|
|
find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; } |
|
|
|
fi |
|
|
|
|
|
|
|
#find / \( ! -fstype local -o -fstype rdonly \ |
|
|
|
# -o -fstype procfs \) -a -prune -o \ |
|
|
|
# -name 'lost+found' -a -prune -o \ |
|
|
|
# -name '*.core' -a -print -o \ |
|
|
|
# \( -name '[#,]*' -o -name '.#*' -o -name a.out \ |
|
|
|
# -o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \ |
|
|
|
# -a -atime +3 -a -execdir rm -f -- {} \; -a -print > $TMP |
|
|
|
|
|
|
|
if egrep -q '\.core$' $TMP; then |
|
|
|
echo "" |
|
|
|
echo "Possible core dumps:" |
|
|
|
egrep '\.core$' $TMP |
|
|
|
fi |
|
|
|
|
|
|
|
if egrep -qv '\.core$' $TMP; then |
|
|
|
echo "" |
|
|
|
echo "Deleted files:" |
|
|
|
egrep -v '\.core$' $TMP |
|
|
|
fi |
|
|
|
|
|
|
|
if [ -d /var/msgs -a ! -L /var/msgs ]; then |
|
|
|
msgs -c |
|
|
|
fi |
|
|
|