updated to 1.0.27.1
This commit is contained in:
parent
ceeef98da9
commit
4daf011ab2
1
.gitignore
vendored
1
.gitignore
vendored
@ -29,3 +29,4 @@ alsa-utils-1.0.23.tar.bz2
|
|||||||
/alsa-utils-1.0.25.tar.bz2
|
/alsa-utils-1.0.25.tar.bz2
|
||||||
/alsa-utils-1.0.26.tar.bz2
|
/alsa-utils-1.0.26.tar.bz2
|
||||||
/alsa-utils-1.0.27.tar.bz2
|
/alsa-utils-1.0.27.tar.bz2
|
||||||
|
/alsa-utils-1.0.27.1.tar.bz2
|
||||||
|
45
alsa-info.sh
45
alsa-info.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPT_VERSION=0.4.61
|
SCRIPT_VERSION=0.4.62
|
||||||
CHANGELOG="http://www.alsa-project.org/alsa-info.sh.changelog"
|
CHANGELOG="http://www.alsa-project.org/alsa-info.sh.changelog"
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
@ -227,7 +227,7 @@ withsysfs() {
|
|||||||
echo "!!-----------" >> $FILE
|
echo "!!-----------" >> $FILE
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
fi
|
fi
|
||||||
for f in init_pin_configs driver_pin_configs user_pin_configs init_verbs; do
|
for f in init_pin_configs driver_pin_configs user_pin_configs init_verbs hints; do
|
||||||
echo "$i/$f:" >> $FILE
|
echo "$i/$f:" >> $FILE
|
||||||
cat $i/$f >> $FILE
|
cat $i/$f >> $FILE
|
||||||
echo >> $FILE
|
echo >> $FILE
|
||||||
@ -370,7 +370,7 @@ information about your ALSA installation and sound related hardware.
|
|||||||
|
|
||||||
See '$0 --help' for command line options.
|
See '$0 --help' for command line options.
|
||||||
"
|
"
|
||||||
if [[ -n "$DIALOG" ]]; then
|
if [ -n "$DIALOG" ]; then
|
||||||
dialog --backtitle "$BGTITLE" \
|
dialog --backtitle "$BGTITLE" \
|
||||||
--title "ALSA-Info script v $SCRIPT_VERSION" \
|
--title "ALSA-Info script v $SCRIPT_VERSION" \
|
||||||
--msgbox "$greeting_message" 20 80
|
--msgbox "$greeting_message" 20 80
|
||||||
@ -392,8 +392,7 @@ trap cleanup 0
|
|||||||
|
|
||||||
if [ "$PROCEED" = "yes" ]; then
|
if [ "$PROCEED" = "yes" ]; then
|
||||||
|
|
||||||
if [[ -z "$LSPCI" ]]
|
if [ -z "$LSPCI" ]; then
|
||||||
then
|
|
||||||
echo "This script requires lspci. Please install it, and re-run this script."
|
echo "This script requires lspci. Please install it, and re-run this script."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@ -404,12 +403,12 @@ KERNEL_VERSION=`uname -r`
|
|||||||
KERNEL_PROCESSOR=`uname -p`
|
KERNEL_PROCESSOR=`uname -p`
|
||||||
KERNEL_MACHINE=`uname -m`
|
KERNEL_MACHINE=`uname -m`
|
||||||
KERNEL_OS=`uname -o`
|
KERNEL_OS=`uname -o`
|
||||||
[[ `uname -v |grep SMP` ]] && KERNEL_SMP="Yes" || KERNEL_SMP="No"
|
[[ `uname -v | grep SMP` ]] && KERNEL_SMP="Yes" || KERNEL_SMP="No"
|
||||||
ALSA_DRIVER_VERSION=`cat /proc/asound/version |head -n1|awk {'print $7'} |sed 's/\.$//'`
|
ALSA_DRIVER_VERSION=`cat /proc/asound/version |head -n1|awk {'print $7'} |sed 's/\.$//'`
|
||||||
get_alsa_library_version
|
get_alsa_library_version
|
||||||
ALSA_UTILS_VERSION=`amixer -v |awk {'print $3'}`
|
ALSA_UTILS_VERSION=`amixer -v |awk {'print $3'}`
|
||||||
VENDOR_ID=`lspci -vn |grep 040[1-3] | awk -F':' '{print $3}'|awk {'print substr($0, 2);}' >$TEMPDIR/vendor_id.tmp`
|
VENDOR_ID=`lspci -vn | grep 040[1-3] | awk -F':' '{print $3}'| awk {'print substr($0, 2);}' >$TEMPDIR/vendor_id.tmp`
|
||||||
DEVICE_ID=`lspci -vn |grep 040[1-3] | awk -F':' '{print $4}'|awk {'print $1'} >$TEMPDIR/device_id.tmp`
|
DEVICE_ID=`lspci -vn | grep 040[1-3] | awk -F':' '{print $4}'| awk {'print $1'} >$TEMPDIR/device_id.tmp`
|
||||||
LAST_CARD=$((`grep "]: " /proc/asound/cards | wc -l` - 1 ))
|
LAST_CARD=$((`grep "]: " /proc/asound/cards | wc -l` - 1 ))
|
||||||
|
|
||||||
ESDINST=$(which esd 2>/dev/null| sed 's|^[^/]*||' 2>/dev/null)
|
ESDINST=$(which esd 2>/dev/null| sed 's|^[^/]*||' 2>/dev/null)
|
||||||
@ -587,8 +586,7 @@ done
|
|||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -s "$TEMPDIR/alsa-hda-intel.tmp" ]
|
if [ -s "$TEMPDIR/alsa-hda-intel.tmp" ]; then
|
||||||
then
|
|
||||||
echo "!!HDA-Intel Codec information" >> $FILE
|
echo "!!HDA-Intel Codec information" >> $FILE
|
||||||
echo "!!---------------------------" >> $FILE
|
echo "!!---------------------------" >> $FILE
|
||||||
echo "--startcollapse--" >> $FILE
|
echo "--startcollapse--" >> $FILE
|
||||||
@ -599,8 +597,7 @@ then
|
|||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -s "$TEMPDIR/alsa-ac97.tmp" ]
|
if [ -s "$TEMPDIR/alsa-ac97.tmp" ]; then
|
||||||
then
|
|
||||||
echo "!!AC97 Codec information" >> $FILE
|
echo "!!AC97 Codec information" >> $FILE
|
||||||
echo "!!----------------------" >> $FILE
|
echo "!!----------------------" >> $FILE
|
||||||
echo "--startcollapse--" >> $FILE
|
echo "--startcollapse--" >> $FILE
|
||||||
@ -613,8 +610,7 @@ then
|
|||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -s "$TEMPDIR/alsa-usbmixer.tmp" ]
|
if [ -s "$TEMPDIR/alsa-usbmixer.tmp" ]; then
|
||||||
then
|
|
||||||
echo "!!USB Mixer information" >> $FILE
|
echo "!!USB Mixer information" >> $FILE
|
||||||
echo "!!---------------------" >> $FILE
|
echo "!!---------------------" >> $FILE
|
||||||
echo "--startcollapse--" >> $FILE
|
echo "--startcollapse--" >> $FILE
|
||||||
@ -626,8 +622,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#If no command line options are specified, then run as though --with-all was specified
|
#If no command line options are specified, then run as though --with-all was specified
|
||||||
if [[ -z "$1" ]]
|
if [ -z "$1" ]; then
|
||||||
then
|
|
||||||
update
|
update
|
||||||
withall
|
withall
|
||||||
pbcheck
|
pbcheck
|
||||||
@ -636,8 +631,7 @@ fi
|
|||||||
fi # proceed
|
fi # proceed
|
||||||
|
|
||||||
#loop through command line arguments, until none are left.
|
#loop through command line arguments, until none are left.
|
||||||
if [[ -n "$1" ]]
|
if [ -n "$1" ]; then
|
||||||
then
|
|
||||||
until [ -z "$1" ]
|
until [ -z "$1" ]
|
||||||
do
|
do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@ -767,7 +761,7 @@ if [ "$PROCEED" = "no" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$UPLOAD" = "ask" ]; then
|
if [ "$UPLOAD" = "ask" ]; then
|
||||||
if [[ -n "$DIALOG" ]]; then
|
if [ -n "$DIALOG" ]; then
|
||||||
dialog --backtitle "$BGTITLE" --title "Information collected" --yes-label " UPLOAD / SHARE " --no-label " SAVE LOCALLY " --defaultno --yesno "\n\nAutomatically upload ALSA information to $WWWSERVICE?" 10 80
|
dialog --backtitle "$BGTITLE" --title "Information collected" --yes-label " UPLOAD / SHARE " --no-label " SAVE LOCALLY " --defaultno --yesno "\n\nAutomatically upload ALSA information to $WWWSERVICE?" 10 80
|
||||||
DIALOG_EXIT_CODE=$?
|
DIALOG_EXIT_CODE=$?
|
||||||
if [ $DIALOG_EXIT_CODE != 0 ]; then
|
if [ $DIALOG_EXIT_CODE != 0 ]; then
|
||||||
@ -882,27 +876,26 @@ echo ""
|
|||||||
fi #dialog
|
fi #dialog
|
||||||
|
|
||||||
#See if tput is available, and use it if it is.
|
#See if tput is available, and use it if it is.
|
||||||
if [[ -n "$TPUT" ]]
|
if [ -n "$TPUT" ]; then
|
||||||
then
|
|
||||||
if [[ -z $PASTEBIN ]]; then
|
if [[ -z $PASTEBIN ]]; then
|
||||||
FINAL_URL=`tput setaf 1; grep "SUCCESS:" $TEMPDIR/wget.tmp | cut -d ' ' -f 2 ; tput sgr0`
|
FINAL_URL=`tput setaf 1; grep "SUCCESS:" $TEMPDIR/wget.tmp | cut -d ' ' -f 2 ; tput sgr0`
|
||||||
else
|
else
|
||||||
FINAL_URL=`tput setaf 1; grep "SUCCESS:" $TEMPDIR/wget.tmp |sed -n 's/.*\:\([0-9]\+\).*/http:\/\/pastebin.ca\/\1/p';tput sgr0`
|
FINAL_URL=`tput setaf 1; grep "SUCCESS:" $TEMPDIR/wget.tmp | sed -n 's/.*\:\([0-9]\+\).*/http:\/\/pastebin.ca\/\1/p';tput sgr0`
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ -z $PASTEBIN ]]; then
|
if [[ -z $PASTEBIN ]]; then
|
||||||
FINAL_URL=`grep "SUCCESS:" $TEMPDIR/wget.tmp | cut -d ' ' -f 2`
|
FINAL_URL=`grep "SUCCESS:" $TEMPDIR/wget.tmp | cut -d ' ' -f 2`
|
||||||
else
|
else
|
||||||
FINAL_URL=`grep "SUCCESS:" $TEMPDIR/wget.tmp |sed -n 's/.*\:\([0-9]\+\).*/http:\/\/pastebin.ca\/\1/p'`
|
FINAL_URL=`grep "SUCCESS:" $TEMPDIR/wget.tmp | sed -n 's/.*\:\([0-9]\+\).*/http:\/\/pastebin.ca\/\1/p'`
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Output the URL of the uploaded file.
|
# Output the URL of the uploaded file.
|
||||||
echo "Your ALSA information is located at $FINAL_URL"
|
echo "Your ALSA information is located at $FINAL_URL"
|
||||||
echo "Please inform the person helping you."
|
echo "Please inform the person helping you."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
#We couldnt find a suitable wget, so tell the user to upload manually.
|
# We couldnt find a suitable wget, so tell the user to upload manually.
|
||||||
else
|
else
|
||||||
mv -f $FILE $NFILE || exit 1
|
mv -f $FILE $NFILE || exit 1
|
||||||
KEEP_OUTPUT="yes"
|
KEEP_OUTPUT="yes"
|
||||||
@ -935,5 +928,3 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
%define baseversion 1.0.27
|
%define baseversion 1.0.27
|
||||||
#define fixversion .1
|
%define fixversion .1
|
||||||
|
|
||||||
Summary: Advanced Linux Sound Architecture (ALSA) utilities
|
Summary: Advanced Linux Sound Architecture (ALSA) utilities
|
||||||
Name: alsa-utils
|
Name: alsa-utils
|
||||||
@ -27,8 +27,7 @@ BuildRequires: xmlto
|
|||||||
BuildRequires: systemd-units >= 39-2
|
BuildRequires: systemd-units >= 39-2
|
||||||
Conflicts: udev <= 179-2
|
Conflicts: udev <= 179-2
|
||||||
# use latest alsa-lib - the executables in this package requires latest API
|
# use latest alsa-lib - the executables in this package requires latest API
|
||||||
# alsa-info.sh script requires the dialog package
|
Requires: alsa-lib%{?_isa} >= %{baseversion}, systemd-units >= 39-2
|
||||||
Requires: alsa-lib%{?_isa} >= %{baseversion}, systemd-units >= 39-2, dialog
|
|
||||||
Conflicts: filesystem < 3
|
Conflicts: filesystem < 3
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -117,6 +116,11 @@ if [ -s /etc/asound.state -a ! -s /var/lib/alsa/asound.state ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 21 2013 Jaroslav Kysela <jkysela@redhat.com> - 1.0.27.1-1
|
||||||
|
- Updated to 1.0.27.1
|
||||||
|
- Updated alsa-info.sh to 0.4.61
|
||||||
|
- Remove dependency on the dialog package (it is optional for alsa-info.sh)
|
||||||
|
|
||||||
* Mon Apr 15 2013 Jaroslav Kysela <jkysela@redhat.com> - 1.0.27-2
|
* Mon Apr 15 2013 Jaroslav Kysela <jkysela@redhat.com> - 1.0.27-2
|
||||||
- Fix the new udev rules (missing GOTO) - bug#951750
|
- Fix the new udev rules (missing GOTO) - bug#951750
|
||||||
- Fix the string size in alsactl (underflow)
|
- Fix the string size in alsactl (underflow)
|
||||||
|
Loading…
Reference in New Issue
Block a user