Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jun 2006 23:25:58 +0200 (CEST)
From:      Dirk Engling <erdgeist@erdgeist.org>
To:        Xin LI <delphij@FreeBSD.org>
Cc:        freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org
Subject:   Re: conf/95162: [patch] Missing feature in rc.subr
Message-ID:  <20060609222512.Y15476@erdgeist.org>
In-Reply-To: <200606091826.k59IQfmo057494@freefall.freebsd.org>
References:  <200606091826.k59IQfmo057494@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 9 Jun 2006, Xin LI wrote:

> Synopsis: [patch] Missing feature in rc.subr
>
> Responsible-Changed-From-To: freebsd-bugs->freebsd-rc
> Responsible-Changed-By: delphij
> Responsible-Changed-When: Fri Jun 9 18:26:02 UTC 2006
> Responsible-Changed-Why:
> Over to the rc mailing list.  Patch looks fine to me, may I commit
> it?
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=95162

Very nice idea. However, it does not take care of rc_conf_files, which 
means that a variable set in /etc/rc.conf.local can not be unset that way.

Further to be _very_  sure I'd

grep -v "^${rcvar}="

to avoid removing too much from rc.conf.

Also for clarity one could remove all ^${rcvar}= entries when enabling 
${rcvar}, possibly in an extra clear function, which might also take care
of rc_conf_files.

Have I missed anything else? I would like to see this feature when its 
ready.

Regards

   erdgeist



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060609222512.Y15476>