Commit 7f4ce271 authored by Pavel Shilovsky's avatar Pavel Shilovsky

Fix build on RHEL-like distros

parent f95385d3
...@@ -48,13 +48,12 @@ split_kernel_version() ...@@ -48,13 +48,12 @@ split_kernel_version()
check_for_centos() check_for_centos()
{ {
SPECIFIC_CENTOS= SPECIFIC_CENTOS=
if [ -r "/etc/redhat-release" ] ; then if which lsb_release > /dev/null; then
grep 'CentOS' /etc/redhat-release >/dev/null && SPECIFIC_CENTOS=1 lsb_release -d | egrep -q 'CentOS|Red Hat|Scientific Linux|NauLinux|LinuxWizard' && SPECIFIC_CENTOS=1
grep 'Red Hat' /etc/redhat-release >/dev/null && SPECIFIC_CENTOS=1
fi fi
if [ -n "$SPECIFIC_CENTOS" ] ; then if [ -n "$SPECIFIC_CENTOS" ] ; then
echo echo
echo "Found CentOS or RHEL." echo "Found RHEL-like distribution."
kernel_release4 kernel_release4
N1=`echo $KERNEL4 | cut -d"." -f 1` N1=`echo $KERNEL4 | cut -d"." -f 1`
......
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