svn commit: r254829 - head/usr.sbin/periodic

Jeremie Le Hen jlh at FreeBSD.org
Sun Aug 25 08:56:09 UTC 2013


Author: jlh
Date: Sun Aug 25 08:56:09 2013
New Revision: 254829
URL: http://svnweb.freebsd.org/changeset/base/254829

Log:
  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.

Modified:
  head/usr.sbin/periodic/periodic.sh

Modified: head/usr.sbin/periodic/periodic.sh
==============================================================================
--- head/usr.sbin/periodic/periodic.sh	Sun Aug 25 08:42:50 2013	(r254828)
+++ head/usr.sbin/periodic/periodic.sh	Sun Aug 25 08:56:09 2013	(r254829)
@@ -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


More information about the svn-src-head mailing list