summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-04-01 17:45:27 +0000
committerjhb <jhb@FreeBSD.org>2003-04-01 17:45:27 +0000
commit4f51bb11c1f3c26098c1bc19d7f1f633c185e55d (patch)
treeff0fe9184da4a5e2062068b70106eda47fa109fb /etc/periodic
parentfe878182e2221eb05ed76dfb0914f58534505266 (diff)
downloadFreeBSD-src-4f51bb11c1f3c26098c1bc19d7f1f633c185e55d.zip
FreeBSD-src-4f51bb11c1f3c26098c1bc19d7f1f633c185e55d.tar.gz
Complete removal of 320.rdist by removing its entry from periodic.conf and
removing the related 220.backup-distfile script and associatd periodic.conf entry. Discussed with: obrien
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/220.backup-distfile39
1 files changed, 0 insertions, 39 deletions
diff --git a/etc/periodic/daily/220.backup-distfile b/etc/periodic/daily/220.backup-distfile
deleted file mode 100755
index 93d7660..0000000
--- a/etc/periodic/daily/220.backup-distfile
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# If there is a global system configuration file, suck it in.
-#
-if [ -r /etc/defaults/periodic.conf ]
-then
- . /etc/defaults/periodic.conf
- source_periodic_confs
-fi
-
-case "$daily_backup_distfile_enable" in
- [Yy][Ee][Ss])
- if [ ! -f /etc/Distfile ]
- then
- echo '$daily_backup_distfile_enable is set but /etc/Distfile' \
- "doesn't exist"
- rc=2
- else
- bak=/var/backups
- rc=0
-
- echo ""
- echo "Backing up /etc/Distfile:"
-
- if ! cmp -s $bak/Distfile.bak /etc/Distfile
- then
- rc=1
- mv $bak/Distfile.bak $bak/Distfile.bak2
- cp /etc/Distfile $bak/Distfile.bak || rc=3
- fi
- fi;;
-
- *) rc=0;;
-esac
-
-exit $rc
OpenPOWER on IntegriCloud