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
|
||||
nobootprompt=()
|
||||
mn=`{echo $bootargs | awk -F! '{print $1}'}
|
||||
ma=`{echo $bootargs | sed 's/[^!]*!?//'}
|
||||
mn=`{echo $bootargs | sed 's,!, ,'}
|
||||
ma=$mn(2-)
|
||||
mn=$mn(1)
|
||||
switch(m$"mn){
|
||||
case $mt
|
||||
mp=m$mn
|
||||
|
|
Loading…
Reference in a new issue