ref: 94b0f9b38a97e017b0144e3331ac7ec2bd2298a6
dir: /newsrv/
#!/bin/rc -x
# newsrv - create a new /srv device
# usage: newsrv command
rfork ens
<[3]/srv/clone{
id=`{<[0=3]read}
<[3=]@{ # close the clone fd
rfork n
bind -c /srv/$id /srv
rc -c $*
}
}