mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Allow rc_conf_files to be redefined in rc.conf(5)
With this change, it's possible to redefine rc_conf_files (e.g., sysrc rc_conf_files+=/etc/rc.conf.other) and have the boot process pick up settings in extra files. The sysrc(8) tool can be used to query/enumerate/find/manage extra files configured in this manner. Relnotes: yes
This commit is contained in:
parent
f3975b867e
commit
a8cb567afb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295342
|
@ -716,5 +716,17 @@ if [ -z "${source_rc_confs_defined}" ]; then
|
|||
;;
|
||||
esac
|
||||
done
|
||||
for i in ${rc_conf_files}; do
|
||||
case ${sourced_files} in
|
||||
*:$i:*)
|
||||
;;
|
||||
*)
|
||||
sourced_files="${sourced_files}:$i:"
|
||||
if [ -r $i ]; then
|
||||
. $i
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue