mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
16 lines
271 B
Bash
Executable File
16 lines
271 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
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
|