mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 22:55:42 +01:00
Create a special fd redirection for menu choice.
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>
This commit is contained in:
parent
01285f20d9
commit
6596a405f6
1 changed files with 1 additions and 1 deletions
|
@ -1411,7 +1411,7 @@ if [ x$devs_found != x ]; then
|
||||||
Following card(s) are found on your system.
|
Following card(s) are found on your system.
|
||||||
Choose a soundcard to configure:
|
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`
|
card=`head -n 1 $FOUND`
|
||||||
if [ "$card" = "legacy" ]; then
|
if [ "$card" = "legacy" ]; then
|
||||||
ac_config_legacy
|
ac_config_legacy
|
||||||
|
|
Loading…
Reference in a new issue