Cosmetic changes.

Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
This commit is contained in:
Paul Traina 1997-08-17 17:55:45 +00:00
parent 4bf4d90ac6
commit ad34f5a438
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28320
14 changed files with 32 additions and 19 deletions

View File

@ -1,10 +1,11 @@
#!/bin/sh
#
# $Id: 120.clean-preserve,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
# $Id: 120.clean-preserve,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
if [ -d /var/preserve ]; then
echo ""
echo "Removing stale files from /var/preserve:"
cd /var/preserve && find . ! -name . -mtime +7 -exec rm -f -- {} \;
fi

View File

@ -1,11 +1,12 @@
#!/bin/sh
#
# $Id: 130.clean-msgs,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
# $Id: 130.clean-msgs,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
# remove system messages older than 21 days
#
if [ -d /var/msgs ] ; then
echo
echo ""
echo "Cleaning out old system announcements:"
msgs -c
fi

View File

@ -1,11 +1,12 @@
#!/bin/sh
#
# $Id: 140.clean-rwho,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
# $Id: 140.clean-rwho,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
if [ -d /var/rwho ] ; then
echo ""
echo "Removing stale files from /var/rwho"
echo "Removing stale files from /var/rwho:"
cd /var/rwho && find . ! -name . -mtime +7 -exec rm -f -- {} \;
fi

View File

@ -1,12 +1,12 @@
#!/bin/sh
#
# $Id: 220.backup-distfile,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
# $Id: 220.backup-distfile,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
bak=/var/backups
if [ -f /etc/Distfile ]; then
echo ""
echo "Backing up /etc/Distfile"
echo "Backing up /etc/Distfile:"
if cmp -s $bak/Distfile.bak /etc/Distfile; then :; else
mv $bak/Distfile.bak $bak/Distfile.bak2

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $Id: 300.calendar,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
# $Id: 300.calendar,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
# `calendar -a' needs to die. Why? Because it's a bad idea, particular
# with networked home directories, but also in general. If you want the
@ -13,5 +13,6 @@ exit 0 # do not run by default
if [ -f /usr/bin/calendar ] ; then
echo ""
echo "Running calendar:"
calendar -a
fi

View File

@ -1,11 +1,12 @@
#!/bin/sh
#
# $Id: 310.accounting,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
# $Id: 310.accounting,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
if [ -f /var/account/acct ] ; then
echo ""
echo "Rotating accounting logs and gathering statistics:"
cd /var/account
if [ -f acct.2 ] ; then mv -f acct.2 acct.3 ; fi
if [ -f acct.1 ] ; then mv -f acct.1 acct.2 ; fi

View File

@ -1,10 +1,11 @@
#!/bin/sh
#
# $Id: 320.rdist,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
# $Id: 320.rdist,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
if [ -f /etc/Distfile ]; then
echo ""
echo "Running rdist with /etc/Distfile:"
rdist -f /etc/Distfile
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $Id: 340.uucp,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
# $Id: 340.uucp,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $
#
# Local cleanup of UUCP files. This is for backwards compatibility,
# /etc/uuclean.daily doesn't exist by default.
@ -8,6 +8,7 @@
if [ -d /var/spool/uucp -a -f /etc/uuclean.daily ]; then
echo ""
echo "Cleaning up UUCP:"
echo /etc/uuclean.daily | su daemon
fi

View File

@ -1,10 +1,11 @@
#!/bin/sh
#
# $Id: 410.status-uucp,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
# $Id: 410.status-uucp,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $
#
if [ -d /var/spool/uucp -a -x /usr/bin/uustat ]; then
echo ""
echo "uucp status:"
echo "UUCP status:"
uustat -a
fi

View File

@ -1,10 +1,11 @@
#!/bin/sh
#
# $Id: 420.status-network,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
# $Id: 420.status-network,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $
#
if [ -x /usr/bin/netstat ] ; then
echo ""
echo "Network interface status:"
netstat -i
fi

View File

@ -1,11 +1,12 @@
#!/bin/sh
#
# $Id: 450.status-security,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
# $Id: 450.status-security,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $
#
if [ -f /etc/security -a -x /usr/sbin/sendmail ] ; then
echo ""
echo "Security check (output mailed separately)"
echo "Security check:"
echo " (output mailed separately)"
sh /etc/security 2>&1 | sendmail root
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: 300.uucp,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
# $Id: 300.uucp,v 1.1.1.1 1997/08/16 17:04:02 pst Exp $
#
# This is really here for backwards compatibility, clean.weekly is not
# created by default anymore.
@ -8,5 +8,6 @@
if [ -d /var/spool/uucp -a -f /usr/libexec/uucp/clean.weekly ]; then
echo ""
echo "Cleaning up UUCP:"
echo /usr/libexec/uucp/clean.weekly | su daemon
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: 330.catman,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
# $Id: 330.catman,v 1.1.1.1 1997/08/16 17:04:02 pst Exp $
#
exit 0 # do not run by default
@ -8,5 +8,6 @@ exit 0 # do not run by default
if [ -x /usr/libexec/catman.local -a -d /usr/share/man/cat1 ] ; then
echo ""
echo "Reformatting manual pages:"
echo /usr/libexec/catman.local "${MANPATH}" | su -fm man
fi

View File

@ -1,10 +1,11 @@
#!/bin/sh -
#
# $Id: 999.local,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $
# $Id: 999.local,v 1.1.1.1 1997/08/16 17:04:02 pst Exp $
#
if [ -f /etc/weekly.local ]; then
echo ""
echo "Running weekly.local:"
sh /etc/weekly.local
fi