freebsd-dev/etc/periodic/daily/220.backup-distfile
Paul Traina ad34f5a438 Cosmetic changes.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
1997-08-17 17:55:45 +00:00

16 lines
326 B
Bash
Executable File

#!/bin/sh
#
# $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:"
if cmp -s $bak/Distfile.bak /etc/Distfile; then :; else
mv $bak/Distfile.bak $bak/Distfile.bak2
cp /etc/Distfile $bak/Distfile.bak
fi
fi