summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2014-01-21 18:57:49 +0000
committerdemon <demon@FreeBSD.org>2014-01-21 18:57:49 +0000
commit35b032da46fb24923cb72a9084fdddf654b1272b (patch)
treef4c940da5ddf3f2d12818b02f319c58f535d21f1 /etc/rc.d
parent1d748745316abf536574d4d146313619d7edadcd (diff)
downloadFreeBSD-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-xetc/rc.d/sysctl4
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
}
OpenPOWER on IntegriCloud