[alsa-devel] [PATCH [alsa-utils] 1/2] alsaconf: support newer m-i-t and kmod

Mike Frysinger vapier at gentoo.org
Wed Nov 13 19:23:47 CET 2013


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 at gentoo.org>
---
 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



More information about the Alsa-devel mailing list