]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Nowadays Gentoo also uses update-modules, so update alsaconf.
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>
Thu, 13 Nov 2008 12:23:04 +0000 (13:23 +0100)
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>
Thu, 13 Nov 2008 12:23:04 +0000 (13:23 +0100)
This was originally reported as Gentoo bug #193303 (
https://bugs.gentoo.org/show_bug.cgi?id=193303 ).

Original patch by Jack Kelly <endgame.dos@gmail.com>

Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
alsaconf/alsaconf.in

index 806ddb6ddb48d3743d4a0c9b96925de840c6be31..6e9ff75708db4579a6503a3effaf6bfa4d137853 100644 (file)
@@ -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