From ee1a5470faa751c1fd07d23b86659fe7a68fd251 Mon Sep 17 00:00:00 2001 From: Daniel Mrzyglod Date: Fri, 10 Oct 2014 11:08:08 +0100 Subject: [PATCH] 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 --- tools/setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1