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.scr < prev    next >
Encoding:
Text File  |  2006-11-29  |  832 b   |  35 lines

  1. /**
  2.  * File:    etc_install_inf.scr
  3.  * Summary:    Agent for reading/writing /etc/install.inf
  4.  * Access:    read / write
  5.  * Author:    Michal Svec <msvec@suse.cz>
  6.  *
  7.  * Example:
  8.  *   Dir(.etc.install_inf)
  9.  *   (["IP", "Nameserver"])
  10.  **
  11.  *   Read(.etc.install_inf.IP)
  12.  *   ("1.2.3.4")
  13.  **
  14.  *   Write(.etc.install_inf.IP, "5.6.7.8")
  15.  *   (true)
  16.  *
  17.  * WARNING! Ini agent cannot handle multiple entries with the same name,
  18.  * such as Alias in install.inf. Use .etc.install_inf_alias instead.
  19.  *
  20.  * $Id: etc_install_inf.scr 12824 2003-11-27 08:51:42Z visnov $
  21.  */
  22. .etc.install_inf
  23.  
  24. `ag_ini(
  25.     `IniAgent( "/etc/install.inf",
  26.     $[
  27.         "options" : [ "read_only", "global_values", "flat" ],
  28.         "comments" : [ "^#.*", "^[ \t]*$", ],
  29.         "params" : [
  30.         $[ "match" : [ "^[ \t]*([a-zA-Z0-9_]+)[ \t]*:[ \t]*(.*)[ \t]*$", "%s: %s" ] ]
  31.         ]
  32.     ]
  33.     )
  34. )
  35.