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_cryptotab.scr < prev    next >
Encoding:
Text File  |  2006-11-29  |  1.2 KB  |  57 lines

  1. /**
  2.  * File:
  3.  *   etc_crytotab.scr
  4.  * Summary:
  5.  *   SCR Agent for reading/writing /etc/cryptotab
  6.  * Access:
  7.  *   read/write
  8.  * Authors:
  9.  *   Johannes Buchhold  <jbuch@suse.de>
  10.  * See:
  11.  *   anyagent
  12.  *   man mount
  13.  * Example:
  14.  *   Original /etc/cypthotab:
  15.  *     /dev/loop0  /dev/hda3       /abuild  reiserfs  twofish  noatime
  16.  *     /dev/loop1  /tmp/cryptfile  /mnt     ext2      twofish  noatime
  17.  *     ...
  18.  *
  19.  *   Read(.etc.cryptotab)
  20.  *   ([$["file":"/dev/hda3", "loop":"/dev/loop0",
  21.  *     "vfstype":"reiserfs", "mount":"/abuild", "opt1":"twofish" ,
  22.  *      "opt2", "noatime" ]
  23.  *     ...
  24.  *   ])
  25.  *
  26.  * 
  27.  *   (0)
  28.  * 
  29.  * $Id: etc_cryptotab.scr 13018 2003-12-11 12:52:53Z jhumpol $
  30.  *
  31.  */
  32. .etc.cryptotab
  33.  
  34. `ag_anyagent(
  35.   `Description (
  36.       (`File("/etc/cryptotab")),    // real file name
  37.       "#\n",            // Comment
  38.       false,            // read-only
  39.       (`List (
  40.         `Tuple (
  41.           `loop (`String("^\t ")),
  42.           `Separator ("\t "),
  43.           `file (`String("^\t ")),
  44.           `Separator ("\t "),
  45.       `mount (`String("^\t ")),
  46.           `Separator ("\t "),
  47.           `vfstype (`String("^\t ")),
  48.       `Separator ("\t "),
  49.           `opt1 (`String("^\t ")),
  50.           `Separator ("\t "),
  51.           `opt2 (`String("^ \t\n"))
  52.         ),
  53.         "\n"
  54.       ))
  55.     )
  56. )
  57.