Commit 6336afa4 authored by Pavel Shilovsky's avatar Pavel Shilovsky

Fix gprintf problem on Mandriva

parent dc16e746
......@@ -129,9 +129,7 @@ is_origmoduled()
check_for_old_kernel()
{
detect_host_kernel
N1=`echo $KERNEL | cut -d"." -f 1`
N2=`echo $KERNEL | cut -d"." -f 2`
N3=`echo $KERNEL | cut -d"." -f 3 | cut -d"-" -f 1`
split_kernel_version
if [ "$N1" -eq 2 ] && [ "$N2" -eq 6 ] ; then
if [ "$N3" -ge 29 ] ; then
return 0
......
......@@ -38,6 +38,13 @@ exit_handler()
exit $rc
}
split_kernel_version()
{
N1=`echo $KERNEL | cut -d"." -f 1`
N2=`echo $KERNEL | cut -d"." -f 2`
N3=`echo $KERNEL | cut -d"." -f 3 | cut -d"-" -f 1`
}
check_for_centos()
{
SPECIFIC_CENTOS=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment