From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id CFDF07EA7 for ; Thu, 9 Oct 2014 18:32:28 +0200 (CEST) Received: from cpe-098-026-066-094.nc.res.rr.com ([98.26.66.94] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XcGkg-0007bc-TM; Thu, 09 Oct 2014 12:39:48 -0400 Date: Thu, 9 Oct 2014 12:39:42 -0400 From: Neil Horman To: Stephen Hemminger Message-ID: <20141009163942.GF20940@hmsreliant.think-freely.org> References: <1412851718-13728-1-git-send-email-danielx.t.mrzyglod@intel.com> <20141009081604.7b42ef4c@urahara> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141009081604.7b42ef4c@urahara> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No 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 16:32:29 -0000 On Thu, Oct 09, 2014 at 08:16:04AM -0700, Stephen Hemminger wrote: > 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 > Right. Other than that though, looks good. Neil