ACC SHELL

Path : /usr/share/YaST2/scrconf/
File Upload :
Current File : //usr/share/YaST2/scrconf/etc_cryptotab.scr

/**
 * File:
 *   etc_cryptotab.scr
 * Summary:
 *   SCR Agent for reading/writing /etc/cryptotab
 * Access:
 *   read/write
 * Authors:
 *   Johannes Buchhold  <jbuch@suse.de>
 * See:
 *   anyagent
 *   man mount
 * Example:
 *   Original /etc/cryptotab:
 *     /dev/loop0  /dev/hda3       /abuild  reiserfs  twofish  noatime
 *     /dev/loop1  /tmp/cryptfile  /mnt     ext2      twofish  noatime
 *     ...
 *
 *   Read(.etc.cryptotab)
 *   ([$["file":"/dev/hda3", "loop":"/dev/loop0",
 *	 "vfstype":"reiserfs", "mount":"/abuild", "opt1":"twofish" ,
 *	  "opt2", "noatime" ]
 *     ...
 *   ])
 *
 *
 *   (0)
 *
 * $Id: etc_cryptotab.scr 38242 2007-06-01 10:57:55Z aschnell $
 *
 */
.etc.cryptotab

`ag_anyagent(
  `Description (
      (`File("/etc/cryptotab")),	// real file name
      "#\n",			// Comment
      false,			// read-only
      (`List (
    	`Tuple (
    	  `loop (`String("^\t ")),
    	  `Separator ("\t "),
    	  `file (`String("^\t ")),
    	  `Separator ("\t "),
	  `mount (`String("^\t ")),
          `Separator ("\t "),
    	  `vfstype (`String("^\t ")),
	  `Separator ("\t "),
    	  `opt1 (`String("^\t ")),
    	  `Separator ("\t "),
    	  `opt2 (`String("^ \t\n"))
    	),
    	"\n"
      ))
    )
)

ACC SHELL 2018