From: Takashi Iwai Subject: Re: [PATCH [alsa-utils] 1/2] alsaconf: support newer m-i-t and kmod Date: Thu, 14 Nov 2013 08:53:00 +0100 Message-ID: References: <1384367028-750-1-git-send-email-vapier@gentoo.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 88DB9261693 for ; Thu, 14 Nov 2013 08:53:00 +0100 (CET) In-Reply-To: <1384367028-750-1-git-send-email-vapier@gentoo.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mike Frysinger Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 13 Nov 2013 13:23:47 -0500, Mike Frysinger wrote: > > The m-i-t package made it up to 3.10 versions before ending, so update > the glob to handle those too. > > Most distros are moving on to kmod, so we also want to handle the version > string that package outputs. > > Signed-off-by: Mike Frysinger Thanks, applied both patches. alsaconf is rarely used nowadays, or better to avoid using, but it's still good to fix potential issues. Takashi > --- > alsaconf/alsaconf.in | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in > index 5c23787..59f25d1 100644 > --- a/alsaconf/alsaconf.in > +++ b/alsaconf/alsaconf.in > @@ -308,9 +308,11 @@ elif [ "$kernel" = "new" ]; then > cfgout="/etc/modprobe.d/50-sound.conf" > cfgoldout="/etc/modprobe.d/sound" > if [ ! -f $cfgout ]; then > - modver=$(modprobe -V | sed -e's/^module-init-tools version //') > - case "$modver" in > - 3.[789]*) > + case "$(modprobe -V)" in > + "module-init-tools version "3.[789]*|\ > + "module-init-tools version "3.1[0-9]*) > + ;; > + "kmod version "*) > ;; > *) > cfgout="/etc/modprobe.d/sound" > -- > 1.8.3.2 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >