Add support for a /etc/defaults/vendor.conf override file

Reviewed by:	stas, imp
Approved by:	re (gjb)
Differential Revision:	https://reviews.freebsd.org/D6895
This commit is contained in:
Kurt Lidl 2016-06-23 19:37:00 +00:00
parent 9de217ce56
commit cc4eb1ea10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302149

View File

@ -741,3 +741,9 @@ if [ -z "${source_rc_confs_defined}" ]; then
done
}
fi
# Allow vendors to override FreeBSD defaults in /etc/default/rc.conf
# without the need to carefully manage /etc/rc.conf.
if [ -r /etc/defaults/vendor.conf ]; then
. /etc/defaults/vendor.conf
fi