svn commit: r260987 - head/etc/rc.d

Dmitry Sivachenko demon at FreeBSD.org
Tue Jan 21 18:57:49 UTC 2014


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
 }
 


More information about the svn-src-all mailing list