summaryrefslogtreecommitdiffstats
path: root/usr.sbin/periodic/periodic.sh
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-02-14 20:06:02 +0000
committerjkh <jkh@FreeBSD.org>1999-02-14 20:06:02 +0000
commite72aab80b6a8af3fcc737800bff84595a1c49e68 (patch)
treeadd0e532109eea1d81a3c950d1064d7869c66126 /usr.sbin/periodic/periodic.sh
parent94eb174c2c141dfa98471f2b912d9f1f8458ab00 (diff)
downloadFreeBSD-src-e72aab80b6a8af3fcc737800bff84595a1c49e68.zip
FreeBSD-src-e72aab80b6a8af3fcc737800bff84595a1c49e68.tar.gz
Look in correct rc.conf file.
Submitted by: Kevin Street <street@iname.com
Diffstat (limited to 'usr.sbin/periodic/periodic.sh')
-rw-r--r--usr.sbin/periodic/periodic.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/periodic/periodic.sh b/usr.sbin/periodic/periodic.sh
index 08b3c70..b195bf8 100644
--- a/usr.sbin/periodic/periodic.sh
+++ b/usr.sbin/periodic/periodic.sh
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: periodic.sh,v 1.6 1998/12/29 22:48:54 hoek Exp $
+# $Id: periodic.sh,v 1.7 1999/01/01 17:37:33 billf Exp $
#
# Run nightly periodic scripts
#
@@ -18,8 +18,11 @@ if [ $# -lt 1 ] ; then
usage
fi
-# If possible, check /etc/rc.conf to see if there are additional dirs to check
-if [ -r /etc/rc.conf ] ; then
+# If possible, check the global system configuration file,
+# to see if there are additional dirs to check
+if [ -r /etc/defaults/rc.conf ]; then
+ . /etc/defaults/rc.conf
+elif [ -r /etc/rc.conf ]; then
. /etc/rc.conf
fi
OpenPOWER on IntegriCloud