The virtual registry is a simple and unified interface to various information managed by Linuxconf. This interface is usable from the command line and from any module. The main features of the virtual registry are:
The virtual registry was created to simplify the design of gurus modules. The gurus are helper used to perform an administration tasks from scratch. Gurus are generally extremely verbose dialogs connected sequentially. Once they have collect information about the task to perform, they generally write here and there in various configuration files. Using the virtual registry, they will leverage the abilities already found in other module (to manipulate those configuration files).
You can find some documentation about the virtual registry and some sample code http://www.solucorp.qc.ca/linuxconf/tech/api/dialog
A new module called vregistry included in the core distribution provides a command line interface to the registry. Here are some examples:
# List all variable managed by the registry /sbin/vregistry --list # Retrieve the workgroup setting in /etc/smb.conf /sbin/vregistry --get samba.workgroup # Change it /sbin/vregistry --list samba.workgroup MYGROUP # disable the samba share "data" /sbin/vregistry --set samba.share_available.data 0
The module is not enable by default. Enable it and there you go.
Control the placement of the previous GUI element.
Send a End directive.
Define a group surrounding fields.
Define a label.
You will find more information at http://www.solucorp.qc.ca/linuxconf/tech/api/dialog
Also, the services configuration is now properly archived/extracted as part of the system profile versioning.