]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsaconf - rcalsasound script does not exists in some distros
authorJaroslav Kysela <perex@perex.cz>
Wed, 4 Oct 2006 08:33:36 +0000 (10:33 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 4 Oct 2006 08:33:36 +0000 (10:33 +0200)
See bug#1505

alsaconf/alsaconf.in

index 82d47319caf56ae4365374959ea009ba01e68dc6..6a7054e9a5d91bae996d6f0a88333ad820f64991 100644 (file)
@@ -911,8 +911,10 @@ BEGIN { in_sound=0; }
       xecho "Running update-modules..."
       update-modules
     fi
-    echo Loading driver...
-    $rcalsasound restart
+    if [ -x $rcalsasound ] ; then
+      echo Loading driver...
+      $rcalsasound restart
+    fi
     echo Setting default volumes...
     if [ -x $bindir/set_default_volume ]; then
        $bindir/set_default_volume -f