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
# reparse #ec variables, move to #e
for(i in init service sysname user nvram rootdir cfs bootdisk bootargs \
nobootprompt debugfactotum fs fsaddr auth authaddr console){
for(i in `{ls -p '#ec'}){
a=`{echo $$i}
$i=()
rm -f '#e'/$i '#ec'/$i
rm -f /env/$i
if(! ~ $#a 0)
$i=$a
}