shithub: scripts

ref: bc762e9c9294990c0d2480295637c792363dcc8c
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} &
}