[Midnightbsd-cvs] src [11780] trunk/etc/periodic/daily/999.local: update local

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Jul 11 19:52:37 EDT 2018


Revision: 11780
          http://svnweb.midnightbsd.org/src/?rev=11780
Author:   laffer1
Date:     2018-07-11 19:52:36 -0400 (Wed, 11 Jul 2018)
Log Message:
-----------
update local

Modified Paths:
--------------
    trunk/etc/periodic/daily/999.local

Property Changed:
----------------
    trunk/etc/periodic/daily/999.local

Modified: trunk/etc/periodic/daily/999.local
===================================================================
--- trunk/etc/periodic/daily/999.local	2018-07-11 22:33:35 UTC (rev 11779)
+++ trunk/etc/periodic/daily/999.local	2018-07-11 23:52:36 UTC (rev 11780)
@@ -1,7 +1,6 @@
 #!/bin/sh
 #
 # $MidnightBSD$
-# $FreeBSD: src/etc/periodic/daily/999.local,v 1.5 2001/06/01 16:40:55 dougb Exp $
 #
 # Run the old /etc/daily.local script.  This is really for backwards
 # compatibility more than anything else.
@@ -21,10 +20,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"


Property changes on: trunk/etc/periodic/daily/999.local
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list