X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=7af51eb6b0a0edfbce9180b5b386ffb1550691e4;hp=a9aeca8f965216fc2cd1b9d093f10a5d1d43048a;hb=cd5f482d90486c624d2dcf33fcf413dd1697fc51;hpb=557d36bf847cfdd7208cde5b577dcea8578a876c diff --git a/autoconfig.functions b/autoconfig.functions index a9aeca8..7af51eb 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -49,7 +49,7 @@ stringinstring(){ # Reread boot command line; echo last parameter's argument or return false. getbootparam(){ stringinstring " $1=" "$CMDLINE" || return 1 - result="${CMDLINE##*$1=}" + result="${CMDLINE##* $1=}" result="${result%%[ ]*}" echo "$result" return 0