diff options
author | 1995-12-19 13:14:13 +0000 | |
---|---|---|
committer | 1995-12-19 13:14:13 +0000 | |
commit | c20034194ad2984ca6585c450ebd2fe54454ffb0 (patch) | |
tree | 06a2a0d42f58f9f456ea26a935b66bb3058607e1 | |
parent | check for Makefile.bsd-wrapper in the correct directory (diff) | |
download | wireguard-openbsd-c20034194ad2984ca6585c450ebd2fe54454ffb0.tar.xz wireguard-openbsd-c20034194ad2984ca6585c450ebd2fe54454ffb0.zip |
check for /etc/{daily,weekly,monthly}.local and run if they exist
-rw-r--r-- | etc/daily | 6 | ||||
-rw-r--r-- | etc/monthly | 9 | ||||
-rw-r--r-- | etc/weekly | 6 |
3 files changed, 20 insertions, 1 deletions
diff --git a/etc/daily b/etc/daily index b92916a5244..c0d3a051e99 100644 --- a/etc/daily +++ b/etc/daily @@ -6,6 +6,12 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local host=`hostname -s` echo "Subject: $host daily run output" +if [ -f /etc/daily.local ];then + echo "" + echo "Running daily.local:" + . /etc/daily.local +fi + echo "" echo "Removing scratch and junk files:" if [ -d /tmp -a ! -h /tmp ]; then diff --git a/etc/monthly b/etc/monthly index 2a5e77e47e8..a545d8cef16 100644 --- a/etc/monthly +++ b/etc/monthly @@ -6,6 +6,14 @@ host=`hostname -s` echo "Subject: $host monthly run output" +if [ -f /etc/monthly.local ];then + echo "" + echo "Running monthly.local:" + . /etc/monthly.local +else + echo "Nothing to do!" +fi + # echo "" # echo "Doing login accounting:" # ac -p | sort -nr +1 @@ -17,5 +25,4 @@ echo "Subject: $host monthly run output" # aculog # cron -echo "Nothing to do!" #echo "." diff --git a/etc/weekly b/etc/weekly index c60679e8700..5878ed1385a 100644 --- a/etc/weekly +++ b/etc/weekly @@ -9,6 +9,12 @@ export PATH host=`hostname -s` echo "Subject: $host weekly run output" +if [ -f /etc/weekly.local ];then + echo "" + echo "Running weekly.local:" + . /etc/weekly.local +fi + #echo "" #echo "Removing old .o files:" #find /usr/src -name '*.o' -atime +21 -print -a -exec rm -f {} \; |