From: Diego 'Flameeyes' Pettenò Date: Thu, 13 Nov 2008 12:23:04 +0000 (+0100) Subject: Nowadays Gentoo also uses update-modules, so update alsaconf. X-Git-Tag: v1.0.19~10^2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2c79b79b4780cae2192ecfc4ba5615d6b0d13f5b;p=alsa-utils.git Nowadays Gentoo also uses update-modules, so update alsaconf. This was originally reported as Gentoo bug #193303 ( https://bugs.gentoo.org/show_bug.cgi?id=193303 ). Original patch by Jack Kelly Signed-off-by: Diego 'Flameeyes' Pettenò --- diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in index 806ddb6..6e9ff75 100644 --- a/alsaconf/alsaconf.in +++ b/alsaconf/alsaconf.in @@ -908,13 +908,12 @@ BEGIN { in_sound=0; } farewell clear - if [ "$distribution" = "gentoo" ]; then - xecho "Running modules-update..." - modules-update - elif [ "$distribution" = "debian" ]; then - xecho "Running update-modules..." - update-modules - fi + case "$distribution" in + gentoo | debian) + xecho "Running update-modules..." + update-modules + ;; + esac if [ -x $rcalsasound ] ; then echo Loading driver... $rcalsasound restart