diff options
-rw-r--r-- | etc/rc.subr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.subr b/etc/rc.subr index da1b198..8c6a1f5 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -998,9 +998,8 @@ load_rc_config() err 3 'USAGE: load_rc_config name' fi - if ${_rc_conf_loaded:-false}; then - : - else + if [ -z "$_rc_conf_loaded" ]; then + set -o allexport if [ -r /etc/defaults/rc.conf ]; then debug "Sourcing /etc/defaults/rc.conf" . /etc/defaults/rc.conf @@ -1010,6 +1009,7 @@ 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}" |