Author: mzugec Date: Fri Jul 3 11:58:37 2009 New Revision: 57860 URL: http://svn.opensuse.org/viewcvs/yast?rev=57860&view=rev Log: added isns agent file Added: trunk/isns/agents/isnsd.scr Added: trunk/isns/agents/isnsd.scr URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/agents/isnsd.scr?rev=57860&view=auto ============================================================================== --- trunk/isns/agents/isnsd.scr (added) +++ trunk/isns/agents/isnsd.scr Fri Jul 3 11:58:37 2009 @@ -0,0 +1,48 @@ +/* + * Read(.ietd.Compression) + * (["yes"]) + * + * Write(.ietd.Compression, "no") + * (true) + * + * Fore more information about possible keys and values + * consult with the slp_config man pages `man slp_config`. + */ + +.etc.iscsid + +`ag_ini( + `IniAgent( "/etc/isns/isns.conf", + $[ + "options" : [ "global_values", "comments_last", "line_can_continue", "join_multiline", "repeat_names" ], + "comments": [ + "^[ \t]*$", // empty line + "^[ \t]+[;#].*$", // comment char is not first char + "^[#][ \t]*$", // only comment chars + "^[#][ \t]*\\[[^]]*$", // comment chars followed by '[' without matching ']' + "^[#][^ \t[]", // comment char followed by non-blank nor '[' + "^[#][ \t]+[^[a-z \t].*$", // comment chars followed by non a-z char nor '[' nor blank + "^[#][ \t]+[a-z ]*[a-z][ \t]*$", // comment chars followed by a-z or blank chars + "^[#][ \t]+[a-z ]*[a-z][ \t]*[^a-z \t=].*$", // like above, but followed by non a-z nor blank nor '=' chars + ], + "sections" : [ + $[ + "begin" : [ "^[ \t]*\\[[ \t]*(.*[^ \t])[ \t]*\\][ \t]*", "[%s]" ], + ], $[ + // this is a special type for commenting out the values + "begin" : [ "^[#;][ \t]*\\[[ \t]*(.*[^ \t])[ \t]*\\][ \t]*", "# [%s]" ], + ] + ], + + // we need to exclude ; because of the second matching rule + "params" : [ + // Options with one value ('yes' / 'no') +// $[ "match" : [ "^[#;][ \t]*([^ \t]+)[ \t]+([^ \t]+)[ \t]+$", "%s %s" ]], + $[ "match" : [ "^[#;][ \t]*([^ \t\=]+)[ \t\=]?(.+)[ \t]*$", "; %s %s" ]], + // Options with more possible values + $[ "match" : [ "^[ \t]*([^ \t\=]+)[ \t\=]+[ ]*(.+)[ \t]*$", "%s = %s" ]], + ], + ] + ) +) + -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org