bootrc: simplify by just converting all variables from #ec
This commit is contained in:
parent
5548300537
commit
ce1915c53e
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue