Get always the right boot parameter
[grml-autoconfig.git] / 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
-  result="${CMDLINE##*$1=}"
+  result="${CMDLINE##* $1=}"
   result="${result%%[  ]*}"
   echo "$result"
   return 0