summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-11-13 13:23:47 -0500
committerTakashi Iwai <tiwai@suse.de>2013-11-14 08:51:37 +0100
commitdf875c6e8f1a26ccba8a9d864bcff85b633df244 (patch)
tree4e193c085819cdc38e6fe21b4847dc9ae7bafe02
parent58752c3ae32e03d676fa225c99c9a8dde9de39ed (diff)
alsaconf: support newer m-i-t and kmod
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>
-rw-r--r--alsaconf/alsaconf.in8
1 files 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"