]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsa-info.sh: Use existing function to print ALSA configuration files
authorDavid Ward <david.ward@ll.mit.edu>
Sat, 21 Dec 2019 05:32:04 +0000 (00:32 -0500)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Jan 2020 13:04:40 +0000 (14:04 +0100)
Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsa-info/alsa-info.sh

index e1067d42f9f8001ba2a0bc6ff4e945a465511293..bf353deceb7dcf8ee2ea1643da56cf690c3fad69 100755 (executable)
@@ -710,33 +710,8 @@ if [ -n "$1" ]; then
                        WITHALL="no"
                        ;;
                --with-configs)
+                       withconfigs
                        WITHALL="no"
-                       if [[ -e $HOME/.asoundrc ]] || [[ -e /etc/asound.conf ]]
-                       then
-                               echo "!!ALSA configuration files" >> $FILE
-                               echo "!!------------------------" >> $FILE
-                               echo "" >> $FILE
-
-                               #Check for ~/.asoundrc
-                               if [[ -e $HOME/.asoundrc ]]
-                               then
-                                       echo "!!User specific config file ($HOME/.asoundrc)" >> $FILE
-                                       echo "" >> $FILE
-                                       cat $HOME/.asoundrc >> $FILE
-                                       echo "" >> $FILE
-                                       echo "" >> $FILE
-                               fi
-
-                               #Check for /etc/asound.conf
-                               if [[ -e /etc/asound.conf ]]
-                               then
-                                       echo "!!System wide config file (/etc/asound.conf)" >> $FILE
-                                       echo "" >> $FILE
-                                       cat /etc/asound.conf >> $FILE
-                                       echo "" >> $FILE
-                                       echo "" >> $FILE
-                               fi
-                       fi
                        ;;
                --stdout)
                        UPLOAD="no"