bootrc: simplify bootargs splitting avoiding awk

This commit is contained in:
cinap_lenrek 2015-04-09 15:36:20 +02:00
parent 5fd97c7d60
commit 74b37c286f

View file

@ -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