2020-03-07 19:06:55 +00:00
|
|
|
#!/bin/rc
|
2020-04-17 17:18:28 +00:00
|
|
|
flags=()
|
|
|
|
while(~ $1 -*){
|
|
|
|
flags=($flags $1)
|
|
|
|
shift
|
|
|
|
}
|
2020-03-07 19:06:55 +00:00
|
|
|
if(~ $#* 0){
|
|
|
|
*=(rc -i)
|
|
|
|
}
|
2020-04-17 17:18:28 +00:00
|
|
|
/acme/bin/$cputype/winfs $flags $1 >/dev/null >[2=1] || {
|
2020-03-07 19:06:55 +00:00
|
|
|
# compat
|
|
|
|
exec /acme/bin/$cputype/win $*
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
echo dump $* > /dev/acme/ctl
|
|
|
|
</dev/cons >/dev/cons >[2=1] $*
|
|
|
|
exit ''
|