tools: fix setup script for Fedora 21
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Fri, 10 Oct 2014 10:08:08 +0000 (11:08 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Oct 2014 15:50:31 +0000 (17:50 +0200)
script was expecting /lib/modules/$(uname -r)/kernel/drivers/uio/uio.ko
but in fedora 21 there are Compressed kernel modules - xz (LZMA)

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
tools/setup.sh

index 369e09e..245900f 100755 (executable)
@@ -169,7 +169,8 @@ load_igb_uio_module()
 
        /sbin/lsmod | grep -s uio > /dev/null
        if [ $? -ne 0 ] ; then
-               if [ -f /lib/modules/$(uname -r)/kernel/drivers/uio/uio.ko ] ; then
+               modinfo uio > /dev/null
+               if [ $? -eq 0 ]; then
                        echo "Loading uio module"
                        sudo /sbin/modprobe uio
                fi