Remove the sourceing of rc.conf from the debug subroutine. This caused
problems when you try to override variables locally.
This commit is contained in:
parent
fce167d1b3
commit
c18dda8955
@ -901,11 +901,6 @@ info()
|
||||
#
|
||||
debug()
|
||||
{
|
||||
# This subroutine is provided as a convenience to script writers, who
|
||||
# should enable debugging in /etc/rc.conf.
|
||||
#
|
||||
[ -f /etc/rc.conf ] && . /etc/rc.conf
|
||||
|
||||
case ${rc_debug} in
|
||||
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
|
||||
_echo 1>&2 "DEBUG" "$*"
|
||||
|
Loading…
Reference in New Issue
Block a user