X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=6df961c154526a42c3b4826e64b343674359e516;hp=882d3f4648a239b135ffa574a6fb16f8a02c41d7;hb=dddfae0c3d3fd37352091192187e5a9852e54b7e;hpb=6da559dce5f4743456a26da6c966d043b85dbd69 diff --git a/autoconfig.functions b/autoconfig.functions index 882d3f4..6df961c 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1499,7 +1499,7 @@ config_mixer () { fi for card in $(cat /proc/asound/cards| grep -e '^\s*[0-9]' | awk '{print $1}') ; do - einfo "Configuring soundcard $(cat /proc/asound/cards| grep -e "$card" | awk -F\[ '{print $2}' | awk '{print $1}')" + einfo "Configuring soundcard \"$(awk -F\[ '/^ *'$card' \[/{ FS=" "; $0=$2; print $1}' < /proc/asound/cards)\"" eindent if checkbootparam 'vol' ; then @@ -1533,7 +1533,7 @@ config_mixer () { fi for CONTROL in Master PCM ; do - if amixer -q | grep -q "Simple mixer control.*$CONTROL" ; then + if amixer -q | grep -q "Simple mixer control '$CONTROL'" ; then amixer -q set "${CONTROL}" "${VOL}"% eend $? fi @@ -1920,6 +1920,9 @@ config_debs(){ if checkbootparam 'debs' ; then iszsh && setopt localoptions shwordsplit DEBS="$(getbootparam 'debs' 2>>$DEBUG)" + if [ -z "$DEBS" ] ; then + DEBS="*" + fi if ! echo $DEBS | grep -q '/'; then # backwards compatibility: if no path is given get debs from debs/ DEBS="debs/$DEBS" @@ -2375,7 +2378,7 @@ config_tohd() # {{{ grml2hd: automatic installation config_grml2hd(){ -if checkbootparam "BOOT_IMAGE=grml2hd" ; then +if checkbootparam "grml2hd" || checkbootparam "BOOT_IMAGE=grml2hd" ; then if checkbootparam 'user' ; then NEWUSER=''