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 / run_get_suseconfig_modules.scr < prev    next >
Encoding:
Text File  |  2006-11-29  |  923 b   |  45 lines

  1. /**
  2.  * File:
  3.  *   run_get_suseconfig_modules
  4.  * Summary:
  5.  *   SCR Agent that returns all SuSEconfig modules
  6.  * Access:
  7.  *   read-only
  8.  * Authors:
  9.  *   Stefan Hundhammer <sh@suse.de>
  10.  * See:
  11.  *   anyagent
  12.  *   libscr
  13.  *   man ls
  14.  * Example:
  15.  *   Read(.run.get.suseconfig.modules)
  16.  *   (["fonts", "kdm2", "pam", "pcmcia", ... , "ypclient"])
  17.  *
  18.  * $Id: run_get_suseconfig_modules.scr 13018 2003-12-11 12:52:53Z jhumpol $
  19.  *
  20.  * Returns a <b>list</b> of SuSEconfig modules.
  21.  */
  22. .run.get.suseconfig.modules
  23.  
  24. `ag_anyagent(
  25.          `Description (
  26.               ( `Run( "        \
  27. cd /sbin/conf.d;                \
  28. /bin/ls                        \
  29. | /usr/bin/sed -e 's/^SuSEconfig\.//'        \
  30. | grep -v 'aaa_at_first'            \
  31. | grep -v '~$'                    \
  32. | egrep -v '\.(swp|bak|sav|save|orig)$'        \
  33. | egrep -v '\.rpm(orig|save|new)$'
  34. "
  35.                  )
  36.                   ),
  37.               "\n",            // Comment
  38.               true,            // read-only
  39.               (`List (
  40.                    `String ("^ \t\n"),
  41.                    `String ("\n\t ")
  42.                    ))
  43.               )
  44.          )
  45.