ACC SHELL
/**
* File: etc_nsswitch_conf.scr
* Summary: Agent for reading/writing /etc/nsswitch.conf
* Access: read / write
* Author: Petr Blahos <pblahos@suse.cz>
*
* Example:
* Dir(.etc.nsswitch_conf)
* (["passwd", "group", "hosts", "networks", "services"])
**
* Read(.etc.nsswitch_conf.passwd)
* ("compat")
**
* Write(.etc.nsswitch_conf.passwd, "files ldap")
* (true)
*
* $Id: etc_nsswitch.scr 18077 2004-07-12 14:23:56Z jsuchome $
*/
.etc.nsswitch_conf
`ag_ini(
`IniAgent( "/etc/nsswitch.conf",
$[
"options" : [ "ignore_case", "global_values", "flat" ],
"comments" : [ "^#.*", "^[ \t]*$", ],
"params" : [
$[ "match" : [ "^[ \t]*([a-zA-Z0-9_]+)[ \t]*:[ \t]*(.*[^ \t]|)[ \t]*$", "%s:\t%s" ] ]
]
]
)
)
ACC SHELL 2018