From: Daniel Mrzyglod Date: Fri, 10 Oct 2014 10:08:08 +0000 (+0100) Subject: tools: fix setup script for Fedora 21 X-Git-Tag: spdx-start~10306 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ee1a5470faa751c1fd07d23b86659fe7a68fd251;p=dpdk.git tools: fix setup script for Fedora 21 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 Acked-by: Neil Horman --- diff --git a/tools/setup.sh b/tools/setup.sh index 369e09ed37..245900fa29 100755 --- a/tools/setup.sh +++ b/tools/setup.sh @@ -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