shithub: scripts

ref: 2c27c3c16d0d97e89f2d121f3fa78b9ffe8cd969
dir: /bin/rc/gridup/

View raw version
#!/bin/rc

srv tcp!registry.9p.zone!6675 registry /n/registry
srv tcp!chat.9p.zone!9990 9p.zone.chat /n/chat.9p.zone
# srv tcp!oat.nine.sirjofri.de!564 sirjofripub /n/sirjofripub
srv -c tcp!9p.zone!9991 9p.zone.disk /n/griddisk

fn clean {
	echo $1 | sed 's/.*!([^!]+)!.*/\1/'
}

for(s in /n/registry/tcp*){
	s=`{basename $s}
	srv $s `{clean $s} /n/^`{clean $s} &
}