#!/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 $* } }