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