From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by dpdk.org (Postfix) with ESMTP id BB45F7E6E for ; Thu, 9 Oct 2014 17:08:54 +0200 (CEST) Received: by mail-ig0-f175.google.com with SMTP id uq10so13202015igb.14 for ; Thu, 09 Oct 2014 08:16:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=O113ZV/hLVJo08rW4h+zBPDViyuRtxmIfcLllhInLqU=; b=MzFmJnrGBmfjSGtpQrprSklyRR/nV/PsTCdTpCdsipl8AoXRhD6CoqjPpl0zEhmGSK 3N/GKIfME/DzzoOjkSOv69POwu5fPncspFyJ9HjxT0ZGi/4LyUZWJj+5ltH2E6llvnrJ NiHGVaroMvGtDkxBPFggqIf22kylQDmldrafao1cQK1D4yvLQpIoCvmKjEv9t4tGG/gg Bdnim9/8v6SZX1Yf/vMoYa0/Q+TWUu1re5wtxHNjWSuJr67oy6Wb/AQUthWjQZbWEOwW C5UHbtnwMKsPgDtZlWmwrO5myQfSA/wDOJMKZwtv10LHN/cSaUS1QrQ/udrMUUgruarE aGPw== X-Gm-Message-State: ALoCoQl9BKezQBmt7mPp4Z9EaScF9kaYYL88dXe18Ia2+0jCCNwbIL3dPPx2nHKac0zorRqfUuVY X-Received: by 10.42.84.198 with SMTP id n6mr8407816icl.73.1412867775977; Thu, 09 Oct 2014 08:16:15 -0700 (PDT) Received: from urahara (static-50-53-65-80.bvtn.or.frontiernet.net. [50.53.65.80]) by mx.google.com with ESMTPSA id ig9sm23109512igb.13.2014.10.09.08.16.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Oct 2014 08:16:15 -0700 (PDT) Date: Thu, 9 Oct 2014 08:16:04 -0700 From: Stephen Hemminger To: Daniel Mrzyglod Message-ID: <20141009081604.7b42ef4c@urahara> In-Reply-To: <1412851718-13728-1-git-send-email-danielx.t.mrzyglod@intel.com> References: <1412851718-13728-1-git-send-email-danielx.t.mrzyglod@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2] 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: Thu, 09 Oct 2014 15:08:55 -0000 On Thu, 9 Oct 2014 11:48:38 +0100 Daniel Mrzyglod wrote: > 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 | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/setup.sh b/tools/setup.sh > index 369e09e..14e319c 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 > + sudo modinfo uio > /dev/null > + if [ $? -eq 0 ]; then > echo "Loading uio module" > sudo /sbin/modprobe uio > fi You don't need sudo to run modinfo