diff options
author | demon <demon@FreeBSD.org> | 2014-01-21 18:57:49 +0000 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2014-01-21 18:57:49 +0000 |
commit | 35b032da46fb24923cb72a9084fdddf654b1272b (patch) | |
tree | f4c940da5ddf3f2d12818b02f319c58f535d21f1 /etc/rc.d | |
parent | 1d748745316abf536574d4d146313619d7edadcd (diff) | |
download | FreeBSD-src-35b032da46fb24923cb72a9084fdddf654b1272b.zip FreeBSD-src-35b032da46fb24923cb72a9084fdddf654b1272b.tar.gz |
Do not exit with non-zero return code if sysctl.conf or sysctl.conf.local files
are absent.
Approved by: delphij
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/sysctl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/sysctl b/etc/rc.d/sysctl index 2420414..6e968f7 100755 --- a/etc/rc.d/sysctl +++ b/etc/rc.d/sysctl @@ -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 } |