diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-08-23 00:24:24 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-08-23 00:24:24 +0200 |
commit | ce1915c53eaccc6a6e77eeb11c47a0cf8dc2545e (patch) | |
tree | 7cd3bd98622382af0d75849aa7c0b011bbf0c58d | |
parent | 554830053712718c007a05aea3385e3a2efb957c (diff) | |
download | plan9front-ce1915c53eaccc6a6e77eeb11c47a0cf8dc2545e.tar.xz |
bootrc: simplify by just converting all variables from #ec
-rw-r--r-- | sys/src/9/boot/bootrc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/src/9/boot/bootrc b/sys/src/9/boot/bootrc index 0a9e45108..881c3d54b 100644 --- a/sys/src/9/boot/bootrc +++ b/sys/src/9/boot/bootrc @@ -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 } |