bootrc: broke #ec copying, fix it. dontkill: ignore errors

This commit is contained in:
cinap_lenrek 2011-08-27 17:20:42 +02:00
parent e3506f4c4d
commit 6d9f649c41
2 changed files with 4 additions and 6 deletions

View file

@ -7,4 +7,5 @@ if (! ~ $#* 1) {
}
# see /sys/src/9/port/proc.c:/^killbig
pids=`{psu | awk '$NF ~ /'$1'/ {print $2}'}
~ $#pids 0 || for(p in /proc/^$pids^/ctl){chmod +w $p; echo noswap >$p; chmod -w $p}
~ $#pids 0 || {for(p in /proc/^$pids^/ctl){chmod +w $p; echo noswap >$p; chmod -w $p}} >/dev/null >[2=1]

View file

@ -17,11 +17,8 @@ cat '#r/rtc' >/dev/time >[2]/dev/null
# reparse #ec variables, move to #e
for(i in `{ls -p '#ec'}){
a=`{echo $$i}
$i=()
rm -f /env/$i
if(! ~ $#a 0)
$i=$a
cat '#ec/'^$i >'#e/'^$i
$i=`{echo $$i}
}
fn fatal {