shithub: privategrid

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

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

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