home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / YaST2 / scrconf / iscsid.scr < prev    next >
Encoding:
Text File  |  2006-11-29  |  1.8 KB  |  49 lines

  1. /*
  2.  *   Read(.ietd.Compression)
  3.  *   (["yes"])
  4.  *
  5.  *   Write(.ietd.Compression, "no")
  6.  *   (true)
  7.  *
  8.  * Fore more information about possible keys and values
  9.  * consult with the slp_config man pages `man slp_config`.
  10.  */
  11.  
  12. .etc.iscsid
  13.  
  14. `ag_ini(
  15.     `IniAgent( "/etc/iscsid.conf",
  16.         $[
  17.         "options" : [ "global_values", "comments_last", "line_can_continue", "join_multiline", "repeat_names" ],
  18.         "comments": [
  19.             "^[ \t]*$", // empty line
  20.             "^[ \t]+[;#].*$", // comment char is not first char
  21.             "^[#][ \t]*$", // only comment chars
  22.             "^[#][ \t]*\\[[^]]*$", // comment chars followed by '[' without matching ']'
  23.             "^[#][^ \t[]", // comment char followed by non-blank nor '['
  24.             "^[#][ \t]+[^[a-z \t].*$", // comment chars followed by non a-z char nor '[' nor blank
  25.             "^[#][ \t]+[a-z ]*[a-z][ \t]*$", // comment chars followed by a-z or blank chars
  26.             "^[#][ \t]+[a-z ]*[a-z][ \t]*[^a-z \t=].*$", // like above, but followed by non a-z nor blank nor '=' chars
  27.         ],
  28.         "sections" : [
  29.             $[
  30.                 "begin" : [ "^[ \t]*\\[[ \t]*(.*[^ \t])[ \t]*\\][ \t]*", "[%s]" ],
  31.             ], $[
  32.                 // this is a special type for commenting out the values
  33.                 "begin" : [ "^[#;][ \t]*\\[[ \t]*(.*[^ \t])[ \t]*\\][ \t]*", "# [%s]" ],
  34.             ]
  35.         ],
  36.  
  37.         // we need to exclude ; because of the second matching rule
  38.         "params" : [
  39.                 // Options with one value ('yes' / 'no')
  40. //                $[ "match" : [ "^[#;][ \t]*([^ \t]+)[ \t]+([^ \t]+)[ \t]+$", "%s %s" ]],
  41.                 $[ "match" : [ "^[#;][ \t]*([^ \t\=]+)[ \t\=]?(.+)[ \t]*$", "; %s %s" ]],
  42.                 // Options with more possible values
  43.                 $[ "match" : [ "^[ \t]*([^ \t\=]+)[ \t\=]+[ ]*(.+)[ \t]*$", "%s = %s" ]],
  44.         ],
  45.        ]
  46.     )
  47. )
  48.  
  49.