3 # Extract the kernel version from the kernel version header file. Takes the
4 # kernel source path as its only argument. If the version header couldn't be
5 # found, print nothing and exit quietly.
8 unless ($ksrc && open (VERSION
, "$ksrc/include/linux/version.h")) {
13 if ($line =~ /"(.+)"/) {
18 unless (open (VERSION
, "$ksrc/include/config/kernel.release")) {
21 if ($line = <VERSION
>) {