diff options
author | Jeremie Le Hen <jlh@FreeBSD.org> | 2013-08-25 08:56:09 +0000 |
---|---|---|
committer | Jeremie Le Hen <jlh@FreeBSD.org> | 2013-08-25 08:56:09 +0000 |
commit | 195cf868e2cbcde624d366c20a6709c1a0899926 (patch) | |
tree | 5fa5656af88a306604f60f82304706665caa3b6f /usr.sbin/periodic | |
parent | 8f39f442c9e3d5fa6a0f1f3206c9c96d82544dfb (diff) | |
download | src-195cf868e2cbcde624d366c20a6709c1a0899926.tar.gz src-195cf868e2cbcde624d366c20a6709c1a0899926.zip |
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.
Notes
Notes:
svn path=/head/; revision=254829
Diffstat (limited to 'usr.sbin/periodic')
-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 cfe61092e18f..9b13a96b652a 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 |