From e9b12780388b49c05ad5f15144bbbfc94168dc89 Mon Sep 17 00:00:00 2001 From: sheldonh Date: Thu, 27 Apr 2000 08:43:49 +0000 Subject: Add to defaults/rc.conf a new function source_rc_confs which rc scripts may use to source safely overrides in ${rc_conf_files} files. This protects users who insist on the bad practice of copying /etc/defaults/rc.conf to /etc/rc.conf from a recursive loop that exhausts available file descriptors. Several people have expressed interest in breaking this function out into its own shell script. Anyone who wants to embark on such an undertaking would do well to study the attributed PR. PR: 17595 Reported by: adrian Submitted by: Doug Barton --- etc/rc.diskless2 | 1 + 1 file changed, 1 insertion(+) (limited to 'etc/rc.diskless2') diff --git a/etc/rc.diskless2 b/etc/rc.diskless2 index 17b0bcb..c3069fa 100644 --- a/etc/rc.diskless2 +++ b/etc/rc.diskless2 @@ -7,6 +7,7 @@ # if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf + source_rc_confs elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi -- cgit v1.1