From 30d34af3977e9276c9f80928bd5c27f4c37228e0 Mon Sep 17 00:00:00 2001 From: jlh Date: Sun, 25 Aug 2013 08:56:09 +0000 Subject: Export a PERIODIC environment variable from periodic(8). This will allow periodic security scripts to know if they have been called in a daily or a weekly context. --- usr.sbin/periodic/periodic.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.sbin') diff --git a/usr.sbin/periodic/periodic.sh b/usr.sbin/periodic/periodic.sh index cfe6109..9b13a96 100644 --- a/usr.sbin/periodic/periodic.sh +++ b/usr.sbin/periodic/periodic.sh @@ -76,6 +76,7 @@ shift arg=$1 tmp_output=`mktemp ${TMPDIR:-/tmp}/periodic.XXXXXXXXXX` +export PERIODIC="$arg${PERIODIC:+ }${PERIODIC}" # Execute each executable file in the directory list. If the x bit is not # set, assume the user didn't really want us to muck with it (it's a -- cgit v1.1