From e858e49540db4948530ba5b42742ee4ca38e4908 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Sun, 3 May 2009 17:16:12 +0000 Subject: [PATCH] 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@ --- src/etc/daily | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/etc/daily b/src/etc/daily index 2d8f3465..2399fc39 100644 --- a/src/etc/daily +++ b/src/etc/daily @@ -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