shithub: gridchat

ref: 1484fc83f17c4b303eb7620479f7f87f781779fb
dir: /newsrv/

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