alsa-utils: updated to 1.0.17 final
This commit is contained in:
parent
efe9b52f24
commit
a657df4fe6
@ -16,3 +16,4 @@ alsa-utils-1.0.14rc2.tar.bz2
|
|||||||
alsa-utils-1.0.14.tar.bz2
|
alsa-utils-1.0.14.tar.bz2
|
||||||
alsa-utils-1.0.15rc1.tar.bz2
|
alsa-utils-1.0.15rc1.tar.bz2
|
||||||
alsa-utils-1.0.16.tar.bz2
|
alsa-utils-1.0.16.tar.bz2
|
||||||
|
alsa-utils-1.0.17.tar.bz2
|
||||||
|
57
alsa-info.sh
57
alsa-info.sh
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPT_VERSION=0.4.41
|
SCRIPT_VERSION=0.4.48
|
||||||
CHANGELOG="http://hg.alsa-project.org/alsa/log/tip/alsa-info.sh"
|
CHANGELOG="http://www.alsa-project.org/alsa-info.sh.changelog"
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#Copyright (C) 2007 Free Software Foundation.
|
#Copyright (C) 2007 Free Software Foundation.
|
||||||
@ -32,8 +32,12 @@ BGTITLE="ALSA-Info v $SCRIPT_VERSION"
|
|||||||
PASTEBINKEY="C9cRIO8m/9y8Cs0nVs0FraRx7U0pHsuc"
|
PASTEBINKEY="C9cRIO8m/9y8Cs0nVs0FraRx7U0pHsuc"
|
||||||
#Define some simple functions
|
#Define some simple functions
|
||||||
|
|
||||||
|
pbcheck(){
|
||||||
|
[[ $(ping -c1 www.pastebin.ca) ]] || KEEP_FILES="yes" NOUPLOAD="yes" PBERROR="yes"
|
||||||
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
wget -O /tmp/alsa-info.sh http://hg.alsa-project.org/alsa/raw-file/tip/alsa-info.sh >/dev/null 2>&1
|
wget -O /tmp/alsa-info.sh "http://www.alsa-project.org/alsa-info.sh" >/dev/null 2>&1
|
||||||
REMOTE_VERSION=`grep SCRIPT_VERSION /tmp/alsa-info.sh |head -n1 |sed 's/.*=//'`
|
REMOTE_VERSION=`grep SCRIPT_VERSION /tmp/alsa-info.sh |head -n1 |sed 's/.*=//'`
|
||||||
if [ "$REMOTE_VERSION" != "$SCRIPT_VERSION" ]; then
|
if [ "$REMOTE_VERSION" != "$SCRIPT_VERSION" ]; then
|
||||||
if [[ -n $DIALOG ]]
|
if [[ -n $DIALOG ]]
|
||||||
@ -77,11 +81,11 @@ withaplay() {
|
|||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
echo "APLAY" >> $FILE
|
echo "APLAY" >> $FILE
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
aplay -l >> $FILE
|
aplay -l >> $FILE 2>&1
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
echo "ARECORD" >> $FILE
|
echo "ARECORD" >> $FILE
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
arecord -l >> $FILE
|
arecord -l >> $FILE 2>&1
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +106,7 @@ withamixer() {
|
|||||||
CARD_NAME=`grep "^ *$i " /tmp/alsainfo/alsacards.tmp|awk {'print $2'}`
|
CARD_NAME=`grep "^ *$i " /tmp/alsainfo/alsacards.tmp|awk {'print $2'}`
|
||||||
echo "!!-------Mixer controls for card $i $CARD_NAME]" >> $FILE
|
echo "!!-------Mixer controls for card $i $CARD_NAME]" >> $FILE
|
||||||
echo "" >>$FILE
|
echo "" >>$FILE
|
||||||
amixer -c$i>> $FILE
|
amixer -c$i>> $FILE 2>&1
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
done
|
done
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
@ -190,7 +194,6 @@ SNDOPTIONS=$(modprobe -c|sed -n 's/^options \(snd[-_][^ ]*\)/\1:/p')
|
|||||||
|
|
||||||
QUESTION="yes"
|
QUESTION="yes"
|
||||||
PROCEED="yes"
|
PROCEED="yes"
|
||||||
NOUPLOAD=""
|
|
||||||
REPEAT=""
|
REPEAT=""
|
||||||
while [ -z "$REPEAT" ]; do
|
while [ -z "$REPEAT" ]; do
|
||||||
REPEAT="no"
|
REPEAT="no"
|
||||||
@ -215,7 +218,7 @@ done
|
|||||||
if [ "$QUESTION" = "yes" ]; then
|
if [ "$QUESTION" = "yes" ]; then
|
||||||
if [[ -n "$DIALOG" ]]
|
if [[ -n "$DIALOG" ]]
|
||||||
then
|
then
|
||||||
if [ -z "NOUPLOAD" ]; then
|
if [ -z "$NOUPLOAD" ]; then
|
||||||
dialog --backtitle "$BGTITLE" --title "ALSA-Info script v $SCRIPT_VERSION" --yesno "\nThis script will collect information about your ALSA installation and sound related hardware, to help diagnose your problem\n\nBy default, this script will AUTOMATICALLY UPLOAD your information to a pastebin site.\n\nSee $0 --help for options\n\nDo you want to run this script?" 0 0
|
dialog --backtitle "$BGTITLE" --title "ALSA-Info script v $SCRIPT_VERSION" --yesno "\nThis script will collect information about your ALSA installation and sound related hardware, to help diagnose your problem\n\nBy default, this script will AUTOMATICALLY UPLOAD your information to a pastebin site.\n\nSee $0 --help for options\n\nDo you want to run this script?" 0 0
|
||||||
else
|
else
|
||||||
dialog --backtitle "$BGTITLE" --title "ALSA-Info script v $SCRIPT_VERSION" --yesno "\nThis script will collect information about your ALSA installation and sound related hardware, to help diagnose your problem\n\nSee $0 --help for options\n\nDo you want to run this script?" 0 0
|
dialog --backtitle "$BGTITLE" --title "ALSA-Info script v $SCRIPT_VERSION" --yesno "\nThis script will collect information about your ALSA installation and sound related hardware, to help diagnose your problem\n\nSee $0 --help for options\n\nDo you want to run this script?" 0 0
|
||||||
@ -270,7 +273,7 @@ fi
|
|||||||
mkdir $TEMPDIR 2>/dev/null
|
mkdir $TEMPDIR 2>/dev/null
|
||||||
|
|
||||||
#Fetch the info and store in temp files/variables
|
#Fetch the info and store in temp files/variables
|
||||||
DISTRO=`grep -ihs "buntu\|SUSE\|Fedora\|PCLinuxOS\|MEPIS\|Mandriva\|Debian\|Damn\|Sabayon\|Slackware\|KNOPPIX\|Gentoo\|Zenwalk\|Mint\|Kubuntu\|FreeBSD\|Puppy\|Freespire\|Vector\|Dreamlinux\|CentOS\|Arch\|Xandros\|Elive\|SLAX\|Red\|BSD\|KANOTIX\|Nexenta\|Foresight\|GeeXboX\|Frugalware\|64\|SystemRescue\|Novell\|Solaris\|BackTrack\|KateOS" /etc/{issue,*release,*version}`
|
DISTRO=`grep -ihs "buntu\|SUSE\|Fedora\|PCLinuxOS\|MEPIS\|Mandriva\|Debian\|Damn\|Sabayon\|Slackware\|KNOPPIX\|Gentoo\|Zenwalk\|Mint\|Kubuntu\|FreeBSD\|Puppy\|Freespire\|Vector\|Dreamlinux\|CentOS\|Arch\|Xandros\|Elive\|SLAX\|Red\|BSD\|KANOTIX\|Nexenta\|Foresight\|GeeXboX\|Frugalware\|64\|SystemRescue\|Novell\|Solaris\|BackTrack\|KateOS\|Pardus" /etc/{issue,*release,*version}`
|
||||||
KERNEL_VERSION=`uname -r`
|
KERNEL_VERSION=`uname -r`
|
||||||
KERNEL_PROCESSOR=`uname -p`
|
KERNEL_PROCESSOR=`uname -p`
|
||||||
KERNEL_MACHINE=`uname -m`
|
KERNEL_MACHINE=`uname -m`
|
||||||
@ -411,9 +414,7 @@ then
|
|||||||
withamixer
|
withamixer
|
||||||
withalsactl
|
withalsactl
|
||||||
withlsmod
|
withlsmod
|
||||||
#Workaround, while we sort out pastebin location, since pastebin.ca blocked us.
|
pbcheck
|
||||||
#NOUPLOAD="yes"
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi # proceed
|
fi # proceed
|
||||||
@ -457,17 +458,6 @@ then
|
|||||||
withalsactl
|
withalsactl
|
||||||
withlsmod
|
withlsmod
|
||||||
;;
|
;;
|
||||||
#### FIX ME
|
|
||||||
--secure)
|
|
||||||
withdevices
|
|
||||||
withconfigs
|
|
||||||
withaplay
|
|
||||||
withamixer
|
|
||||||
withalsactl
|
|
||||||
withlsmod
|
|
||||||
withsecure
|
|
||||||
;;
|
|
||||||
###########
|
|
||||||
--with-aplay)
|
--with-aplay)
|
||||||
withaplay
|
withaplay
|
||||||
;;
|
;;
|
||||||
@ -598,7 +588,11 @@ fi
|
|||||||
if [[ -n $DIALOG ]]
|
if [[ -n $DIALOG ]]
|
||||||
then
|
then
|
||||||
if [[ -n $NOUPLOAD ]]; then
|
if [[ -n $NOUPLOAD ]]; then
|
||||||
dialog --backtitle "$BGTITLE" --title "Information collected" --msgbox "You requested that your information was NOT automatically uploaded to the pastebin\n\nYour ALSA information can be seen by looking in $FILE" 10 100
|
if [[ -n $PBERROR ]]; then
|
||||||
|
dialog --backtitle "$BGTITLE" --title "Information collected" --msgbox "An error occured while contacting the pastebin. Your information was NOT automatically uploaded.\n\nYour ALSA information can be seen by looking in $FILE" 10 100
|
||||||
|
else
|
||||||
|
dialog --backtitle "$BGTITLE" --title "Information collected" --msgbox "You requested that your information was NOT automatically uploaded to the pastebin\n\nYour ALSA information can be seen by looking in $FILE" 10 100
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
dialog --backtitle "$BGTITLE" --title "Information uploaded" --yesno "Would you like to see the uploaded information?" 5 100
|
dialog --backtitle "$BGTITLE" --title "Information uploaded" --yesno "Would you like to see the uploaded information?" 5 100
|
||||||
DIALOG_EXIT_CODE=$?
|
DIALOG_EXIT_CODE=$?
|
||||||
@ -610,10 +604,17 @@ then
|
|||||||
fi
|
fi
|
||||||
clear
|
clear
|
||||||
if [[ -n $NOUPLOAD ]]; then
|
if [[ -n $NOUPLOAD ]]; then
|
||||||
echo "You requested that your information was NOT automatically uploaded to the pastebin"
|
if [[ -n $PBERROR ]]; then
|
||||||
echo ""
|
echo "An error occured while contacting the pastebin. Your information was NOT automatically uploaded."
|
||||||
echo "Your ALSA information can be seen by looking in $FILE"
|
echo ""
|
||||||
echo ""
|
echo "Your ALSA information can be seen by looking in $FILE"
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo "You requested that your information was NOT automatically uploaded to the pastebin"
|
||||||
|
echo ""
|
||||||
|
echo "Your ALSA information can be seen by looking in $FILE"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ -z $NOUPLOAD ]]; then
|
if [[ -z $NOUPLOAD ]]; then
|
||||||
echo "Your ALSA information is located at $FINAL_URL"
|
echo "Your ALSA information is located at $FINAL_URL"
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
Summary: Advanced Linux Sound Architecture (ALSA) utilities
|
Summary: Advanced Linux Sound Architecture (ALSA) utilities
|
||||||
Name: alsa-utils
|
Name: alsa-utils
|
||||||
Version: 1.0.16
|
Version: 1.0.17
|
||||||
Release: 3%{?prever_dot}%{?dist}
|
Release: 1%{?prever_dot}%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
URL: http://www.alsa-project.org/
|
URL: http://www.alsa-project.org/
|
||||||
@ -88,6 +88,10 @@ install -p -m 755 %{SOURCE6} $RPM_BUILD_ROOT/usr/bin/alsa-info
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 21 2008 Jaroslav Kysela <jkysela@redhat.com> 1.0.17-1
|
||||||
|
- updated to 1.0.17 final
|
||||||
|
- updated alsa-info.sh script to 0.4.48
|
||||||
|
|
||||||
* Mon Apr 28 2008 Martin Stransky <stransky@redhat.com> 1.0.16-3
|
* Mon Apr 28 2008 Martin Stransky <stransky@redhat.com> 1.0.16-3
|
||||||
- Added alsa-info.sh script to /usr/bin/alsa-info
|
- Added alsa-info.sh script to /usr/bin/alsa-info
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user