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

  1. /**
  2.  * File:    etc_login_defs.scr
  3.  * Summary:    Agent for reading/writing /etc/login.defs
  4.  * Author:    Michal Svec <msvec@suse.cz>
  5.  * Access:    read / write
  6.  *
  7.  * Example:
  8.  *   Dir(.etc.login_defs)
  9.  *   (["FAIL_DELAY", "FAILLOG_ENAB", ...])
  10.  **
  11.  *   Read(.etc.login_defs.FAIL_DELAY)
  12.  *   ("3")
  13.  **
  14.  *   Write(.etc.login_defs.FAIL_DELAY, "1")
  15.  *   (true)
  16.  *
  17.  * $Id: etc_login_defs.scr 12455 2003-10-22 12:24:49Z visnov $
  18.  *
  19.  * Read/Sets the values defined in <tt>/etc/login.defs</tt>
  20.  * in an easy manner.
  21.  */
  22. .etc.login_defs
  23.  
  24. `ag_ini(
  25.     `IniAgent( "/etc/login.defs",
  26.     $[
  27.         "options"    : [ "global_values", "flat" ],
  28.         "comments"    : [ "^#.*", "^[ \t]*$", ],
  29.         "params"    : [
  30.         /* quoted values */
  31.         $[ "match" : [
  32.             "^[ \t]*([a-zA-Z0-9_]+)[ \t]+\"([^\"]*)\"",
  33.             "%s\t\"%s\"",
  34.         ]],
  35.         /* unquoted values */
  36.         $[ "match" : [
  37.             "^[ \t]*([a-zA-Z0-9_]+)[ \t]+(.*[^ \t]|)[ \t]*$",
  38.             "%s\t%s",
  39.         ]]
  40.         ]
  41.     ]
  42. ))
  43.