StanzaFile::Lilo - read, parse, and write Linux Loader configuration files.
There are no interface changes between this and the parent class, StanzaFile::Grub. This is included, partly, as an example of the ease with which additional different stanza file formats can be supported using the StanzaFile class and, mostly, because I used the StanzaFile::Lilo class in a kernel build and installation management package I wrote (check it out, http://www.sourceforge.net/projects/kif/).
The lilo configuration file format differs in a couple of ways from the grug.conf format. Both are in stanzas, but the stanza beginning and the format of the lines in the file are slightly different.
These differences are accommodated by overriding three of the methods defined in StanzaFile::Grub. These are:
A predicate which tests the line to see if it is the beginning of a new stanza. If it is, the value of the predicate is the name of the new stanza. Otherwise the value of the predicate is undefined.
A predicate which tests the line to see if it contains a name/value pair and returns that pair as the value of the prediate. Otherwise it returns and undefined.
Produce a string suitable for printing that represents a lilo configuration file stanza other than the header.
No comments or whitespace are preserved in the configuration file when it is read and/or written.
Dick Munroe (munroe@csworks). I'm looking for work. If you hear of anything that might be of interest to a VERY senior engineer/architect drop me a note. See http://www.acornsw.com/resume/dick.html for details.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 121:
'=item' outside of any '=over'
- Around line 138:
You forgot a '=back' before '=head1'