summaryrefslogtreecommitdiffstats
path: root/etc/rc.subr
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2011-03-13 16:27:36 +0000
committerdougb <dougb@FreeBSD.org>2011-03-13 16:27:36 +0000
commit66c4acf134e3f7d9a5eeb2cbf1ead60fe4b96a66 (patch)
tree0c6cf467e73a3919f6b7706866df9b1c097e2ece /etc/rc.subr
parent3dcb70500adc050c4de7d93383406aefa86879a6 (diff)
downloadFreeBSD-src-66c4acf134e3f7d9a5eeb2cbf1ead60fe4b96a66.zip
FreeBSD-src-66c4acf134e3f7d9a5eeb2cbf1ead60fe4b96a66.tar.gz
Revert r219578
Diffstat (limited to 'etc/rc.subr')
-rw-r--r--etc/rc.subr6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index 8c6a1f5..da1b198 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -998,8 +998,9 @@ load_rc_config()
err 3 'USAGE: load_rc_config name'
fi
- if [ -z "$_rc_conf_loaded" ]; then
- set -o allexport
+ if ${_rc_conf_loaded:-false}; then
+ :
+ else
if [ -r /etc/defaults/rc.conf ]; then
debug "Sourcing /etc/defaults/rc.conf"
. /etc/defaults/rc.conf
@@ -1009,7 +1010,6 @@ load_rc_config()
. /etc/rc.conf
fi
_rc_conf_loaded=true
- set +o allexport
fi
if [ -f /etc/rc.conf.d/"$_name" ]; then
debug "Sourcing /etc/rc.conf.d/${_name}"
OpenPOWER on IntegriCloud