bootrc: simplify by just converting all variables from #ec

This commit is contained in:
cinap_lenrek 2011-08-23 00:24:24 +02:00
parent 5548300537
commit ce1915c53e

View file

@ -16,11 +16,10 @@ for(i in I l^(0 1 2 3))
cat '#r/rtc' >/dev/time >[2]/dev/null cat '#r/rtc' >/dev/time >[2]/dev/null
# reparse #ec variables, move to #e # reparse #ec variables, move to #e
for(i in init service sysname user nvram rootdir cfs bootdisk bootargs \ for(i in `{ls -p '#ec'}){
nobootprompt debugfactotum fs fsaddr auth authaddr console){
a=`{echo $$i} a=`{echo $$i}
$i=() $i=()
rm -f '#e'/$i '#ec'/$i rm -f /env/$i
if(! ~ $#a 0) if(! ~ $#a 0)
$i=$a $i=$a
} }