projects
/
grml-autoconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
557d36b
)
Get always the right boot parameter
author
Ulrich Dangel
<uli@spamt.net>
Thu, 12 Feb 2009 16:21:46 +0000
(17:21 +0100)
committer
Michael Prokop
<mika@grml.org>
Thu, 12 Feb 2009 18:18:06 +0000
(19:18 +0100)
autoconfig.functions
patch
|
blob
|
history
diff --git
a/autoconfig.functions
b/autoconfig.functions
index
a9aeca8
..
7af51eb
100755
(executable)
--- 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
# 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