From 53c9c6b67bbf9bfcec6b5d96e110fbeef703b1cc Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 31 Oct 2006 12:44:03 +0100 Subject: [PATCH] config_mixer: beautify error output of aumix. --- autoconfig.functions | 16 ++++++++++++++-- debian/changelog | 6 ++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/autoconfig.functions b/autoconfig.functions index a1a2126..fa5dd55 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1451,7 +1451,13 @@ else amixer set Front 0% 1>/dev/null fi fi - aumix -w 0 -v 0 -p 0 -m 0 ; eend $? + ERROR=$(aumix -w 0 -v 0 -p 0 -m 0 2>&1) ; RC=$? + if [ -n "$ERROR" ] ; then + eindent + eerror "Problem muting sound devices: $ERROR" + eoutdent + fi + eend $RC elif [ -z "$INSTALLED" ]; then einfo "Setting mixer volumes to level ${WHITE}${VOL}${NORMAL}." # some IBM notebooks require the following stuff: @@ -1461,7 +1467,13 @@ else amixer set Front ${VOL}% 1>/dev/null fi fi - aumix -w $VOL -v $VOL -p $VOL -m $VOL ; eend $? + ERROR=$(aumix -w $VOL -v $VOL -p $VOL -m $VOL 2>&1) ; RC=$? + if [ -n "$ERROR" ] ; then + eindent + eerror "Problem setting mixer volumes: $ERROR" + eoutdent + fi + eend $RC fi fi diff --git a/debian/changelog b/debian/changelog index 32f0c17..bfa2afb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-autoconfig (0.5-17) unstable; urgency=low + + * config_mixer: beautify error output of aumix. + + -- Michael Prokop Tue, 31 Oct 2006 12:38:52 +0100 + grml-autoconfig (0.5-16) unstable; urgency=low * Fix config_debs() and include it in config files, thanks for -- 2.1.4