mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:05:42 +01:00
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>
This commit is contained in:
parent
58752c3ae3
commit
df875c6e8f
1 changed files with 5 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue