build: fix kernel version info

This commit is contained in:
Jan Engelhardt
2009-07-02 01:04:48 +02:00
parent ee24cd1ac1
commit 6b2ca78af7

View File

@@ -79,10 +79,14 @@ krel="${krel#*.}";
kminor="${krel%%.*}";
krel="${krel#*.}";
kmicro="${krel%%.*}";
krel="${krel#*.}";
kstable="${krel%%.*}";
if test -z "$kstable"; then
krel2="${krel#*.}";
if test "$krel" = "$krel2"; then
kstable=0;
else
kstable="${krel%%.*}";
if test -z "$kstable"; then
kstable=0;
fi;
fi;
echo "Found kernel version $kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 30; then