ref: 9403363364590f566c07fbd6c937ec9b15a2bfc0
parent: 6d9f649c41db3e121cfaf94be1a07075773ef93f
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Sat Aug 27 13:58:20 EDT 2011
bootrc: dont try to convert kernel variables, fix quoting
--- a/sys/src/9/boot/bootrc
+++ b/sys/src/9/boot/bootrc
@@ -16,9 +16,14 @@
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 {