Browse Source

remove dead code and the associated documentation

while here, remove the misleading shbang and an unused variable
and add the missing cross reference to ac(8)
ok sthen@ jmc@
OPENBSD_4_6
schwarze 15 years ago
parent
commit
e858e49540
1 changed files with 1 additions and 23 deletions
  1. +1
    -23
      src/etc/daily

+ 1
- 23
src/etc/daily View File

@ -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 # From: @(#)daily 8.2 (Berkeley) 1/25/94
# #
umask 022 umask 022
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
bak=/var/backups
sysctl -n kern.version sysctl -n kern.version
uptime uptime
@ -58,26 +56,6 @@ if [ -d /var/rwho -a ! -L /var/rwho ] ; then
find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; } find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; }
fi 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 if [ -d /var/msgs -a ! -L /var/msgs ]; then
msgs -c msgs -c
fi fi


Loading…
Cancel
Save