shithub: privategrid

ref: ae717e651051cac1548c988909186e91d5349673
dir: /user-scripts/connect/

View raw version
#! /bin/rc -e
if($1){
	url=$1
}
if not{
	echo 'usage grid/connect [url]'
	exit 'bad usage'
}
srv -c tcp!$url!19564 $name^disk /n/$name^disk
srv -c tcp!$url! $name^ram /n/$name^ram
srv -c tcp!$url! $name^plumb /mnt/plumb

if (test /n/$name^disk/init){
	/n/$name^disk/init
}