Do not exit with non-zero return code if sysctl.conf or sysctl.conf.local files

are absent.

Approved by:	delphij
This commit is contained in:
Dmitry Sivachenko 2014-01-21 18:57:49 +00:00
parent 30b5118d51
commit eea6404df7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260987

View File

@ -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
}