WARNING! The whole syntax of '/etc/modules.conf' (modules.conf(5)) is NOT covered by current implementation of the agent. There are just four directives that are accepted (all other will be ignored): alias, post-install, pre-install and options.
Note: The complete development documentation is available in the autodocs/ directory.
.modules.alias
Read(.modules.alias, <alias_name>) -> stringreturn value is <real_name> or "null" or "off"
Write(.modules.alias, <real_name> | "null" | "off", <alias_name>) -> boolean
Read(.modules.alias, "eth0") -> "de4x5"
Write(.modules.alias, "off", "eth0") -> truewrites "alias eth0 off" to 'modules.conf', possibly replacing an already existing entry for "alias eth0"
.modules.options .modules.options.<option>
Read(.modules.options, <module>) -> map
Read(.modules.options.<option>, <module>) -> string
Write(.modules.options, <map>, <module>) -> boolean
Write(.modules.options.<option>, <value>, <module>) -> boolean
Read(.modules.options, "mpu401") -> $["io" : "0x0330", "irq" : "9"])
Read(.modules.options.io, "mpu401") -> "0x330"
Write(.modules.options, $["io" : "0x0330", "irq" : "9"], "mpu401") -> true
Write(.modules.options.io, "0x0330", "mpu401") -> true
Note: The map elements while writing options must be pairs string : string!
.modules.pre-install
Read(.modules.pre-install, <module>) -> string
Write(.modules.pre-install, <string>, <module>) -> boolean
Read(.modules.pre-install, "ad1816") -> "modprobe -k opl3"
Write(.modules.pre-install, "modprobe -k opl3", "ad1816") -> true
.modules.post-install
Read(.modules.post-install, <module>) -> string
Write(.modules.post-install, <string>, <module>) -> boolean
Read(.modules.post-install, "ad1816") -> "modprobe -k mpu401"
Write(.modules.post-install, "modprobe -k mpu401", "ad1816") -> true
.modules.<directive>.comment
Read(.modules.<directive>.comment, <name>) -> string
Write(.modules.<directive>.comment, <comment sring>, <name>) -> boolean
Read(.modules.alias.comment, "eth0") -> "# YaST2: Network card\n"
Write(.modules.alias.comment, "# YaST2: Network card\n", "eth0") -> true
Note: It is not possible to delete only one option, only whole 'options' entry!
Write(.modules.alias, nil, "eth0") -> true
Write(.modules, nil)
/sbin/depmod -a -F /boot/System.map-`uname -r` `uname -r`
Not all directives are supported. See the TODO.txt file for the current status of support and also for the list of possible future enhancements.
Path | Type | Result |
---|---|---|
.modules | YCPList | list with all available directives (currently sublist of ["alias", "pre-install", "post-install", "options"] |
.modules.alias | YCPList | list with all "alias" directives |
.modules.pre-install | YCPList | list with all "pre-install" directives |
.modules.post-install | YCPList | list with all "post-install" directives |
.modules.options | YCPList | list with all "options" directives |
.modules.options.<option> | YCPString | one particular option |
.modules.<directive>.comment | YCPString | string (with hashes ('#') and new-lines ('\n') that belongs to the directive |
Path | Result |
---|---|
.modules | list with all available directives (currently sublist of ["alias", "pre-install", "post-install", "options"] |
.modules.alias | list with all "alias" directives |
.modules.pre-install | list with all "pre-install" directives |
.modules.post-install | list with all "post-install" directives |
.modules.options | list with all "options" directives |
Michal Svec <msvec@suse.cz>