From ce1915c53eaccc6a6e77eeb11c47a0cf8dc2545e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 23 Aug 2011 00:24:24 +0200 Subject: bootrc: simplify by just converting all variables from #ec --- sys/src/9/boot/bootrc | 5 ++--- 1 file 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 } -- cgit v1.2.3