yast/yast-yast2

View on GitHub
library/system/src/scrconf/boot_vmlinuz_version.scr

Summary

Maintainability
Test Coverage
/**
 * File:    boot_vmlinuz_version.scr
 * Summary:    Agent for reading /etc/exports
 * Authors:    Klaus Kaempf <kkaempf@suse.de>
 * Access:    read/write
 *
 * Example:
 *   Read(.boot.vmlinuz_version, "/boot/vmlinuz")
 *   ("2.2.18")
 *
 * $Id$
 *
 * Returns the version of the kernel image given as the second argument
 */
.boot.vmlinuz_version

`ag_anyagent(
    `Description(
    (`Run("/usr/bin/get_kernel_version ", `arg(0))),
    "\n", true,
    (`String("^\n"))
    )
)