acid files
This commit is contained in:
parent
c8af1ab17b
commit
0a61c07d59
23 changed files with 4251 additions and 0 deletions
23
acid/window
Executable file
23
acid/window
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/rc
|
||||
switch($#*){
|
||||
case 0 1
|
||||
echo usage: window '''minx miny maxx maxy''' cmd args ...
|
||||
exit usage
|
||||
}
|
||||
|
||||
rfork ns
|
||||
if(mount $wsys /mnt/wsys N`{{echo $pid $1 }| sed 's/^ //g;s/ +/,/g'}){
|
||||
shift
|
||||
bind -b /mnt/wsys /dev
|
||||
echo -n `{basename $1} > /dev/label >[2] /dev/null
|
||||
@{
|
||||
echo hang > /proc/^`{cat /dev/ppid}^/ctl
|
||||
$* < /dev/cons > /dev/cons >[2] /dev/cons &
|
||||
exit $apid
|
||||
}
|
||||
ostatus = `{echo $status | sed 's/.*://'}
|
||||
echo waitstop > /proc/$ostatus/ctl
|
||||
echo nohang > /proc/$ostatus/ctl
|
||||
exit $ostatus
|
||||
}
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue