uname -r | grep el7 &> /dev/null el7=$(($? == 0)) arch="" [ $el7 -ne 0 ] && arch="64" [ -f /etc/gentoo-release ] && arch="64" ands_path=/mnt/ands vma_lib_path=/usr/local/lib/ vma_lib_ext="" [ $el7 -eq 1 ] && vma_lib_path="${ands_path/fedora/centos}" vma_lib=${vma_lib_path}/libvma.so${vma_lib_ext} # With Mellanox OFED extensions (./configure --enable-socketxtreme) #vma_lib=${vma_lib_path}/mlx/libvma.so.8.6.10