]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Create a special fd redirection for menu choice.
authorgrdscarabe@grdscarabe.net <grdscarabe@grdscarabe.net>
Thu, 13 Nov 2008 12:22:55 +0000 (13:22 +0100)
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>
Thu, 13 Nov 2008 12:22:55 +0000 (13:22 +0100)
Without this patch, dialog errors gets interpreted as the choice,
causing errors related to loading "snd-***" module.

The problem was reported as Gentoo bug #96467 (
https://bugs.gentoo.org/show_bug.cgi?id=96467 ).

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

index 47d6da555979d4c22b83f142d66646b68424ff42..806ddb6ddb48d3743d4a0c9b96925de840c6be31 100644 (file)
@@ -1411,7 +1411,7 @@ if [ x$devs_found != x ]; then
          Following card(s) are found on your system.
          Choose a soundcard to configure:
 ")
-    $DIALOG --title "$title" --menu "$msg" 17 76 8 "${devs_found[@]}" 2> $FOUND || acex 0
+    $DIALOG --title "$title" --menu "$msg" 17 76 8 "${devs_found[@]}" --output-fd 3 3> $FOUND || acex 0
     card=`head -n 1 $FOUND`
     if [ "$card" = "legacy" ]; then
        ac_config_legacy