ACC SHELL
/**
* File: etc_install_inf_options.scr
* Summary: Agent for reading/writing module options in /etc/install.inf
* Access: read only
* Author: Martin Vidner <mvidner@suse.cz>
*
* Example:
* Dir(.etc.install_inf_options)
* (["3c59x"])
**
* Read(.etc.install_inf_options.eth0)
* ("debug=6")
*
* $Id: etc_install_inf_options.scr 23587 2005-06-01 12:13:20Z mvidner $
*/
.etc.install_inf_options
`ag_ini(
`IniAgent( "/etc/install.inf",
$[
"options" : [ "read_only", "global_values", "flat" ],
// Everything except the pattern in "params" is a comment.
// I love negated regexps.
"comments" : [
"^[ \t]*[^O].*",
"^[ \t]*O[^p].*",
"^[ \t]*Op[^t].*",
"^[ \t]*Opt[^i].*",
"^[ \t]*Opti[^o].*",
"^[ \t]*Optio[^n].*",
"^[ \t]*Option[^s].*",
"^[ \t]*Options[^ \t:].*",
],
"params" : [
$[ "match" : [ "^[ \t]*Options[ \t]*:[ \t]*([^ \t]*)[ \t]+(.*)$", "Options: %s %s" ] ]
]
]
)
)
ACC SHELL 2018