X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=autoconfig.functions;h=b3529ceed865eef1458625d78bfae89ccc024b15;hb=refs%2Ftags%2F0.7.29;hp=dc446e4d62728612da2300a828ebbc763fbe6c2f;hpb=c30eeec5fbd41ff16333f73c96f2cc39d5d6c0c7;p=grml-autoconfig.git diff --git a/autoconfig.functions b/autoconfig.functions index dc446e4..b3529ce 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper , (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Don Nov 15 11:46:04 CET 2007 [mika] +# Latest change: Don Nov 15 22:01:50 CET 2007 [mika] ################################################################################ # {{{ path, variables, signals, umask, zsh @@ -1509,7 +1509,15 @@ else amixer set Front ${VOL}% 1>/dev/null fi fi - ERROR=$(aumix -w $VOL -v $VOL -p $VOL -m $VOL 2>&1) ; RC=$? + # by default assume '0' as volume for microphone: + if checkbootparam micvol ; then + MICVOL="$(getbootparam 'micvol' 2>>$DEBUG)" + else + MICVOL=0 + fi + + # finally set the volumes: + ERROR=$(aumix -w $VOL -v $VOL -p $VOL -m $MICVOL 2>&1) ; RC=$? if [ -n "$ERROR" ] ; then eindent eerror "Problem setting mixer volumes: $ERROR (no soundcard?)"