Get always the right boot parameter
authorUlrich Dangel <uli@spamt.net>
Thu, 12 Feb 2009 16:21:46 +0000 (17:21 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 12 Feb 2009 18:18:06 +0000 (19:18 +0100)
autoconfig.functions

index a9aeca8..7af51eb 100755 (executable)
@@ -49,7 +49,7 @@ stringinstring(){
 # Reread boot command line; echo last parameter's argument or return false.
 getbootparam(){
   stringinstring " $1=" "$CMDLINE" || return 1
 # 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
   result="${result%%[  ]*}"
   echo "$result"
   return 0