bootrc: broke #ec copying, fix it. dontkill: ignore errors
This commit is contained in:
parent
e3506f4c4d
commit
6d9f649c41
2 changed files with 4 additions and 6 deletions
|
@ -7,4 +7,5 @@ if (! ~ $#* 1) {
|
||||||
}
|
}
|
||||||
# see /sys/src/9/port/proc.c:/^killbig
|
# see /sys/src/9/port/proc.c:/^killbig
|
||||||
pids=`{psu | awk '$NF ~ /'$1'/ {print $2}'}
|
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]
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,8 @@ cat '#r/rtc' >/dev/time >[2]/dev/null
|
||||||
|
|
||||||
# reparse #ec variables, move to #e
|
# reparse #ec variables, move to #e
|
||||||
for(i in `{ls -p '#ec'}){
|
for(i in `{ls -p '#ec'}){
|
||||||
a=`{echo $$i}
|
cat '#ec/'^$i >'#e/'^$i
|
||||||
$i=()
|
$i=`{echo $$i}
|
||||||
rm -f /env/$i
|
|
||||||
if(! ~ $#a 0)
|
|
||||||
$i=$a
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn fatal {
|
fn fatal {
|
||||||
|
|
Loading…
Reference in a new issue