bootrc: simplify bootargs splitting avoiding awk
This commit is contained in:
parent
5fd97c7d60
commit
74b37c286f
|
@ -70,8 +70,9 @@ fn main{
|
||||||
}
|
}
|
||||||
if not bootargs=$nobootprompt
|
if not bootargs=$nobootprompt
|
||||||
nobootprompt=()
|
nobootprompt=()
|
||||||
mn=`{echo $bootargs | awk -F! '{print $1}'}
|
mn=`{echo $bootargs | sed 's,!, ,'}
|
||||||
ma=`{echo $bootargs | sed 's/[^!]*!?//'}
|
ma=$mn(2-)
|
||||||
|
mn=$mn(1)
|
||||||
switch(m$"mn){
|
switch(m$"mn){
|
||||||
case $mt
|
case $mt
|
||||||
mp=m$mn
|
mp=m$mn
|
||||||
|
|
Loading…
Reference in a new issue