Imported Upstream version 1.0.28
[platform/upstream/alsa-utils.git] / alsaconf / alsaconf.in
index 5c23787..3d6adca 100644 (file)
@@ -300,17 +300,17 @@ if [ -n "$cfgfile" ]; then
     exit 1
   fi
 else
-if [ "$distribution" = "gentoo" ]; then
-  cfgfile="/etc/modules.d/alsa"
-elif [ "$kernel" = "new" ]; then
+if [ "$kernel" = "new" ]; then
   cfgfile="/etc/modprobe.conf"
   if [ -d /etc/modprobe.d ]; 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"