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 / boot_vmlinuz_version.scr < prev    next >
Encoding:
Text File  |  2006-11-29  |  519 b   |  24 lines

  1. /**
  2.  * File:    boot_vmlinuz_version.scr
  3.  * Summary:    Agent for reading /etc/exports
  4.  * Authors:    Klaus Kaempf <kkaempf@suse.de>
  5.  * Access:    read/write
  6.  *
  7.  * Example:
  8.  *   Read(.boot.vmlinuz_version, "/boot/vmlinuz")
  9.  *   ("2.2.18")
  10.  *
  11.  * $Id: boot_vmlinuz_version.scr 13069 2003-12-16 09:30:51Z jsrain $
  12.  *
  13.  * Returns the version of the kernel image given as the second argument
  14.  */
  15. .boot.vmlinuz_version
  16.  
  17. `ag_anyagent(
  18.     `Description(
  19.     (`Run("/sbin/get_kernel_version ", `arg(0))),
  20.     "\n", true,
  21.     (`String("^\n"))
  22.     )
  23. )
  24.