ainit.conf provides configuration for ainit utility. It's a classic ini file
with keys and their values. For example value
template = /etc/alsa/asoundrc.template
tells ainit where the configuration template file resides. Values in
ainit.conf can be boolean (yes/no) or string.
All characters behind '#' are treated as comments and ignored.
enabled
Boolean value, enable/disable ainit tool. The default value is:
enabled = yes
overwrite
Boolean value, tells ainit whether it can overwrite target configuration file, if exists.
(It's useful for users who would like to use their own configuration file and don't want to use
the default one). The default value is:
overwrite = no
template
String value, tells ainit the name and location of template file. If you use
special strings '~' or '$HOME' ainit will expand them to the path to
logged in user's home directory. The default value is
template = /etc/alsa/asoundrc.template
But you can use
template = ~/.asoundrc.template
and every user can have his own template file.
target
String value, tells ainit the name and location of the ALSA configuration file and also the lock file
which has '.lock' extension in addition to the configuration file name. Eventual '~' or '$HOME' will be
treated as explained above. The default value is
target = ~/.asoundrc
i.e. every user has his own configuration file ~/.asoundrc and lock file ~/.asoundrc.lock.
EXAMPLE
#
# Sample configuration file for ainit
#
enable = yes
overwrite = no
template = /etc/alsa/asoundrc.template
target = ~/.asoundrc