[Midnightbsd-cvs] src [11777] trunk/etc/periodic/weekly/999.local: update scripts
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Jul 11 18:12:12 EDT 2018
Revision: 11777
http://svnweb.midnightbsd.org/src/?rev=11777
Author: laffer1
Date: 2018-07-11 18:12:11 -0400 (Wed, 11 Jul 2018)
Log Message:
-----------
update scripts
Modified Paths:
--------------
trunk/etc/periodic/weekly/999.local
Modified: trunk/etc/periodic/weekly/999.local
===================================================================
--- trunk/etc/periodic/weekly/999.local 2018-07-11 22:10:41 UTC (rev 11776)
+++ trunk/etc/periodic/weekly/999.local 2018-07-11 22:12:11 UTC (rev 11777)
@@ -1,7 +1,6 @@
#!/bin/sh -
#
# $MidnightBSD$
-# $FreeBSD: src/etc/periodic/weekly/999.local,v 1.6 2001/06/01 16:40:57 dougb Exp $
#
# If there is a global system configuration file, suck it in.
@@ -18,10 +17,15 @@
echo ''
case "$script" in
/*)
- if [ -f "$script" ]
+ if [ -x "$script" ]
then
echo "Running $script:"
+ $script || rc=3
+ elif [ -f "$script" ]
+ then
+ echo "Running $script:"
+
sh $script || rc=3
else
echo "$script: No such file"
More information about the Midnightbsd-cvs
mailing list