#!/usr/bin/perl
#
# Get the kernel version from the file
# on standard input.  (which should be 
# /usr/src/linux/include/linux/version.h

while(<>) {
    if(/UTS_RELEASE\s*\"([0-9]\.[0-9])\.([0-9]+)\"/) {
	if($1 eq "2.2") {
	    print "2.2\n";
	} else {
	    print "$1.$2\n";
	}
    }
}
