In hindsight, if we'd really wanted a key/value pair database then we should have done it in XML and simply dealt with it at arm's length through a accessor utility, e.g. instead of:
case ${ipsec_enable} in
We'd have:
case `sysconfig -r ipsec_enable` in
Or something to that effect.
If you're really looking for "the real solution" underlying this problem then you need to look past the format being used at the moment and at the fundamental problem it was originally trying to solve.
- Jordan
On Thursday, January 2, 2003, at 01:35 PM, Terry Lambert wrote:
[EMAIL PROTECTED] wrote:Well, perhaps I'm missing something here, but can't you just tokenize the items
in rc.conf using strtok after opening up the file in your C program?
You are missing something. Someone violated policy, and put shell code into rc.conf, instead of leaving it a name/value pairs.-- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
-- Jordan K. Hubbard Engineering Manager, BSD technology group Apple Computer To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

