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 / etc_install_inf_options.scr < prev    next >
Encoding:
Text File  |  2006-11-29  |  964 b   |  40 lines

  1. /**
  2.  * File:    etc_install_inf_options.scr
  3.  * Summary:    Agent for reading/writing module options in /etc/install.inf
  4.  * Access:    read only
  5.  * Author:    Martin Vidner <mvidner@suse.cz>
  6.  *
  7.  * Example:
  8.  *   Dir(.etc.install_inf_options)
  9.  *   (["3c59x"])
  10.  **
  11.  *   Read(.etc.install_inf_options.eth0)
  12.  *   ("debug=6")
  13.  *
  14.  * $Id: etc_install_inf_options.scr 23587 2005-06-01 12:13:20Z mvidner $
  15.  */
  16. .etc.install_inf_options
  17.  
  18. `ag_ini(
  19.     `IniAgent( "/etc/install.inf",
  20.     $[
  21.         "options" : [ "read_only", "global_values", "flat" ],
  22.         // Everything except the pattern in "params" is a comment.
  23.         // I love negated regexps.
  24.         "comments" : [
  25.         "^[ \t]*[^O].*",
  26.         "^[ \t]*O[^p].*",
  27.         "^[ \t]*Op[^t].*",
  28.         "^[ \t]*Opt[^i].*",
  29.         "^[ \t]*Opti[^o].*",
  30.         "^[ \t]*Optio[^n].*",
  31.         "^[ \t]*Option[^s].*",
  32.         "^[ \t]*Options[^ \t:].*", 
  33.         ],
  34.         "params" : [
  35.                 $[ "match" : [ "^[ \t]*Options[ \t]*:[ \t]*([^ \t]*)[ \t]+(.*)$", "Options: %s %s" ] ]
  36.         ]
  37.     ]
  38.     )
  39. )
  40.