1/2] alsaconf: support newer m-i-t and kmod
PATCH 1/1 1/2] 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.
--- alsaconf/alsaconf.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
alsaconf/alsaconf.in +5 -3
@@ -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"
Signature · 1 line
1.8.3.2
PATCH 1/1 2/2] alsaconf: update gentoo to use modprobe.d method as everyone else
We migrated off modules.d a long time ago.
--- alsaconf/alsaconf.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
alsaconf/alsaconf.in +1 -3
@@ -300,9 +300,7 @@ 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"
Signature · 1 line
1.8.3.2
Takashi Iwai
AppliedAt Wed, 13 Nov 2013 13:23:47 -0500,
Quoted 8 lines · Mike Frysinger
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 <[email protected]>
Thanks, applied both patches.
alsaconf is rarely used nowadays, or better to avoid using, but it's still good to fix potential issues.
Takashi
Quoted 31 lines
--- alsaconf/alsaconf.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)alsaconf/alsaconf.in +5
-3@@ -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"Signature · 6 lines
1.8.3.2 _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel