mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:35:42 +01:00
alsa-info.sh: Use existing function to print ALSA configuration files
Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
068dd55717
commit
de5ce14163
1 changed files with 1 additions and 26 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue