X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=fa5dd55fa102b24c0012de69a2d388834aa942ab;hp=ba0fe2ca059dc7e05662f6cc641067160a0372a3;hb=53c9c6b67bbf9bfcec6b5d96e110fbeef703b1cc;hpb=efd6786e49003dac27e4ff9f038a1e134ce43cca diff --git a/autoconfig.functions b/autoconfig.functions index ba0fe2c..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 @@ -1802,8 +1814,7 @@ fi config_debs(){ if checkbootparam "debs" ; then DEBS="$(getbootparam 'debs' 2>>$DEBUG)" - [ -z "$CONFIG" ] && CONFIG="/cdrom/debs/*" - einfo "Tring to install debian package(s) ${DEBS}:" + einfo "Tring to install debian package(s) ${DEBS}" dpkg -i /cdrom/debs/$DEBS* ; eend $? fi }