From f66e7afa2807fbc9d43ce69f67eac43806530e8e Mon Sep 17 00:00:00 2001 From: Sheldon Hearn 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/netstart | 1 + 1 file changed, 1 insertion(+) (limited to 'etc/netstart') diff --git a/etc/netstart b/etc/netstart index 21e67edc9546..041f1fe8646c 100755 --- a/etc/netstart +++ b/etc/netstart @@ -12,6 +12,7 @@ # If there is a global system configuration file, suck it in. if [ -f /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf + source_rc_confs elif [ -f /etc/rc.conf ]; then . /etc/rc.conf fi -- cgit v1.2.3