NAME

Libconf::Templates::Inittab - Libconf low level template for inittab file styles config files

DESCRIPTION

Libconf::Templates::Passwd is a template that handles files that contain informations like the ones in /etc/inittab, with lines like :

id:runlevels:action:process

SYNOPSIS

$template = new Libconf::Templates::Inittab({
                                             filename => '/etc/inittab',
                                            });
$template->read_conf();
$template->edit_atom(-1, { key => 'l4',
                           values => {  runlevels => '45',
                                        action => 'once',
                                        process => '/etc/rc.d/rc 5',
                                     },
                         });
...
(see L<Libconf::Templates> for transformation methods on $template)
...
$template->write_conf();

CONSTRUCTOR

new($options)

creates the template

$template = new Libconf::Templates::Inittab({
                                             filename => 'some_file',
                                           })

arguments

$options [type : HASH_REF] specifies the options to create the new template instance.

options

filename [type : STRING, default : ''] : the filename of the config file you want to work on. Can be read and written lately by using set_filename and get_filename.

GENERAL METHODS

See Libconf::Templates for the general list of methods you can call on this template.

SPECIFIC METHODS

There is no specific methods