From owner-freebsd-hackers Tue Dec 14 7: 9: 3 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 64E7014A06 for ; Tue, 14 Dec 1999 07:09:00 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from daniel.sobral (root@p19-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.148]) by peach.ocn.ne.jp (8.9.1a/OCN) with ESMTP id AAA24442 for ; Wed, 15 Dec 1999 00:08:41 +0900 (JST) Received: (from dcs@localhost) by daniel.sobral (8.9.1/8.9.3) id AAA02382 for freebsd-hackers@freebsd.org; Wed, 15 Dec 1999 00:05:54 +0900 (JST) (envelope-from dcs) From: "Daniel C. Sobral" Message-Id: <199912141505.AAA02382@daniel.sobral> Subject: rc.conf/loader.conf manipulation library To: freebsd-hackers@freebsd.org Date: Wed, 15 Dec 1999 00:05:50 +0900 (JST) Disclaimer: Klaatu Barada Nikto! X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have been working on a library to manipulate files in the general format of rc.conf and loader.conf. This library will see use in sysinstall, enabling it to change any variable in these files, and removing that horrible "append changes" behavior. :-) As a bonus, I plan to at a "install splash screen" option to sysinstall. This library can also be used as back-end by any other programs wishing to manipulate these files, or any other files in the same format. Anyone wishing to review it, please get it at: http://www.freebsd.org/~dcs/libconf19991215.tar.gz It has two example programs: chconf and prog. The first one is a cli to changing these files, and the second one is an example of a number of ways to iterate through the data read from these configuration files. A man page is in the works. Meanwhile, any suggestions feedback is welcome. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org If you don't have time to do it right, where are you going to find the time to do it over? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message