From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id E78347E6A for ; Wed, 8 Oct 2014 15:04:26 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 08 Oct 2014 06:11:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,677,1406617200"; d="scan'208";a="602272679" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 08 Oct 2014 06:11:37 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s98DBa71032076; Wed, 8 Oct 2014 14:11:36 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s98DBaH5025818; Wed, 8 Oct 2014 14:11:36 +0100 Received: (from dtmrzglx@localhost) by sivswdev02.ir.intel.com with id s98DBZ8O025814; Wed, 8 Oct 2014 14:11:35 +0100 From: Daniel Mrzyglod To: dev@dpdk.org Date: Wed, 8 Oct 2014 14:11:31 +0100 Message-Id: <1412773891-25774-1-git-send-email-danielx.t.mrzyglod@intel.com> X-Mailer: git-send-email 1.7.4.1 Cc: Daniel Mrzyglod Subject: [dpdk-dev] [PATCH] Modify tools/setup.sh to be compatible with fedora 21 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2014 13:04:27 -0000 From: Daniel Mrzyglod 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 --- tools/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/setup.sh b/tools/setup.sh index 369e09e..6a9d23c 100755 --- a/tools/setup.sh +++ b/tools/setup.sh @@ -169,7 +169,7 @@ 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 + if ls /lib/modules/$(uname -r)/kernel/drivers/uio/uio.ko* &> /dev/null; then echo "Loading uio module" sudo /sbin/modprobe uio fi -- 2.1.0