summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2007-10-09 07:30:14 +0000
committerdougb <dougb@FreeBSD.org>2007-10-09 07:30:14 +0000
commit53e91b664f022a526b5454c12fcce75b2044a029 (patch)
tree21c40865badca2a74b6b01622fef5c946f7b5c22 /etc
parent1f3d8b6576935ba1e4ec959aa441f6ff3f155b99 (diff)
downloadFreeBSD-src-53e91b664f022a526b5454c12fcce75b2044a029.zip
FreeBSD-src-53e91b664f022a526b5454c12fcce75b2044a029.tar.gz
Deprecate use of the early.sh script as advertised when the support for
local rc.d scripts in the overall boot order was added. Proper rc.d scripts are run by rc.subr in a subshell, whereas scripts that end in .sh are sourced into rc's shell. The latter has potential to create serious boot problems, and there is no reason that the same functionality cannot be added by the user in the form of a proper rc.d script (as opposed to being added by the user in the form of /etc/rc.early). This script will be removed prior to the 8.0 branch. Approved by: re (kensmith)
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/early.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.d/early.sh b/etc/rc.d/early.sh
index aaebe33..8955ba8 100644
--- a/etc/rc.d/early.sh
+++ b/etc/rc.d/early.sh
@@ -11,5 +11,8 @@
# Support for legacy /etc/rc.early script
#
if [ -r /etc/rc.early ]; then
+ warn 'Use of the early.sh script is deprecated'
+ warn 'Please use a new-style rc.d script instead'
+ warn 'See rc(8) for more information'
. /etc/rc.early
fi
OpenPOWER on IntegriCloud