aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/tmp
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/rc.d/tmp
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/rc.d/tmp')
-rw-r--r--etc/rc.d/tmp1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp
index 9ccdfa80ed14..091ed1367c91 100644
--- a/etc/rc.d/tmp
+++ b/etc/rc.d/tmp
@@ -7,6 +7,7 @@
bpi="-i $4"
fi
/sbin/mdconfig -a -t malloc -s $1 -u $3
+ /sbin/disklabel -r -w md$3 auto
/sbin/newfs $bpi /dev/md$3c
/sbin/mount /dev/md$3c $2
}