On Mon, Jun 30, 2014 at 03:11:57PM -0500, William Hubbs wrote:
> On Mon, Jun 30, 2014 at 12:46:38PM -0700, C.J. Adams-Collier KF7BMP wrote:
> > Which brings me to the question, does there exist a parser/generator for
> > the /etc/conf.d/net.* files?  If not, would Gentoo like me to contribute
> > my work on the generator, and would one of you point me to the parser?
> 
> The files in /etc/conf.d are just posix shell code; they are sourced in
> /lib*/rc/runscript.sh. The actions taken depend on the service script
> that reads the files.
> 
> I'll let the netifrc maintainers speak up wrt whether they would be
> interested in a generator for /etc/conf.d/net.*.
I'm certainly interested in a generator for the simple versions, but
it's going to remain shell code, because there are some really complex
configs out there, that sanely use variables to abstract & reduce
complexity.

As such, a parser should probably just source it, and be prepared to say
'this is too complex, do it yourself'.

-- 
Robin Hugh Johnson
Gentoo Linux: Developer, Infrastructure Lead
E-Mail     : robb...@gentoo.org
GnuPG FP   : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85

Reply via email to