diff options
author | jlh <jlh@FreeBSD.org> | 2013-08-25 08:56:09 +0000 |
---|---|---|
committer | jlh <jlh@FreeBSD.org> | 2013-08-25 08:56:09 +0000 |
commit | 30d34af3977e9276c9f80928bd5c27f4c37228e0 (patch) | |
tree | 5fa5656af88a306604f60f82304706665caa3b6f /usr.sbin | |
parent | a08ed509f5a265fbdd25cf079ef014868cdcecf0 (diff) | |
download | FreeBSD-src-30d34af3977e9276c9f80928bd5c27f4c37228e0.zip FreeBSD-src-30d34af3977e9276c9f80928bd5c27f4c37228e0.tar.gz |
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.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/periodic/periodic.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |