diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-08-27 17:58:20 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-08-27 17:58:20 +0200 |
commit | 9403363364590f566c07fbd6c937ec9b15a2bfc0 (patch) | |
tree | 207e1adffff6d3a0515b0f59e6fdfd45e9d1f113 | |
parent | 6d9f649c41db3e121cfaf94be1a07075773ef93f (diff) | |
download | plan9front-9403363364590f566c07fbd6c937ec9b15a2bfc0.tar.xz |
bootrc: dont try to convert kernel variables, fix quoting
-rw-r--r-- | sys/src/9/boot/bootrc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/src/9/boot/bootrc b/sys/src/9/boot/bootrc index 339b1bdbd..6a45b0470 100644 --- a/sys/src/9/boot/bootrc +++ b/sys/src/9/boot/bootrc @@ -16,9 +16,14 @@ 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 `{ls -p '#ec'}){ - cat '#ec/'^$i >'#e/'^$i - $i=`{echo $$i} +for(i in `{ls -Qp '#ec'}){ + switch($i){ + case '*'* e820 + # ignore these + case * + cat '#ec/'^$i >'#e/'^$i + $i=`{echo $$i} + } } fn fatal { |