aboutsummaryrefslogtreecommitdiff
path: root/etc/netstart
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2000-04-27 08:43:49 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2000-04-27 08:43:49 +0000
commitf66e7afa2807fbc9d43ce69f67eac43806530e8e (patch)
treebd0af67c80cdbd6cd4218d2e6d06c453322f825a /etc/netstart
parente7fd6f003e03b8956aaeac96fb12247ee7a2bc1b (diff)
downloadsrc-f66e7afa2807fbc9d43ce69f67eac43806530e8e.tar.gz
src-f66e7afa2807fbc9d43ce69f67eac43806530e8e.zip
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 <Doug@gorean.org>
Notes
Notes: svn path=/head/; revision=59674
Diffstat (limited to 'etc/netstart')
-rwxr-xr-xetc/netstart1
1 files changed, 1 insertions, 0 deletions
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