From: Ulrich Dangel Date: Thu, 12 Feb 2009 16:21:46 +0000 (+0100) Subject: Get always the right boot parameter X-Git-Tag: v0.8.17~2 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=cd5f482d90486c624d2dcf33fcf413dd1697fc51 Get always the right boot parameter --- 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