]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsaconf: support newer m-i-t and kmod
authorMike Frysinger <vapier@gentoo.org>
Wed, 13 Nov 2013 18:23:47 +0000 (13:23 -0500)
committerTakashi Iwai <tiwai@suse.de>
Thu, 14 Nov 2013 07:51:37 +0000 (08:51 +0100)
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 <vapier@gentoo.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsaconf/alsaconf.in

index 5c23787742f197f7b6bcba5594d14efd2b41da75..59f25d1ee1d96e3552db8c86ddec6c19231007c6 100644 (file)
@@ -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"