Author: demon (ports committer)
Date: Tue Jan 21 18:57:49 2014
New Revision: 260987
URL: http://svnweb.freebsd.org/changeset/base/260987

Log:
  Do not exit with non-zero return code if sysctl.conf or sysctl.conf.local 
files
  are absent.
  
  Approved by:  delphij

Modified:
  head/etc/rc.d/sysctl

Modified: head/etc/rc.d/sysctl
==============================================================================
--- head/etc/rc.d/sysctl        Tue Jan 21 16:49:54 2014        (r260986)
+++ head/etc/rc.d/sysctl        Tue Jan 21 18:57:49 2014        (r260987)
@@ -27,7 +27,9 @@ sysctl_start()
        esac
 
        for _f in /etc/sysctl.conf /etc/sysctl.conf.local; do
-               [ -r ${_f} ] && ${command} ${command_args} ${_f} > /dev/null
+               if [ -r ${_f} ]; then
+                       ${command} ${command_args} ${_f} > /dev/null
+               fi
        done
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to