mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 21:54:57 +02:00
build: fix kernel version info
This commit is contained in:
10
configure.ac
10
configure.ac
@@ -79,10 +79,14 @@ krel="${krel#*.}";
|
|||||||
kminor="${krel%%.*}";
|
kminor="${krel%%.*}";
|
||||||
krel="${krel#*.}";
|
krel="${krel#*.}";
|
||||||
kmicro="${krel%%.*}";
|
kmicro="${krel%%.*}";
|
||||||
krel="${krel#*.}";
|
krel2="${krel#*.}";
|
||||||
kstable="${krel%%.*}";
|
if test "$krel" = "$krel2"; then
|
||||||
if test -z "$kstable"; then
|
|
||||||
kstable=0;
|
kstable=0;
|
||||||
|
else
|
||||||
|
kstable="${krel%%.*}";
|
||||||
|
if test -z "$kstable"; then
|
||||||
|
kstable=0;
|
||||||
|
fi;
|
||||||
fi;
|
fi;
|
||||||
echo "Found kernel version $kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
|
echo "Found kernel version $kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
|
||||||
if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 30; then
|
if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 30; then
|
||||||
|
Reference in New Issue
Block a user