shithub: privategrid

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

View raw version
#! /bin/rc -e
if($1){
	url=$1
	name='pgrid' # TODO make this a sed script that remove's the dot in an ip/url. for example: fulton.software > fultonsoftware, 192.168.0.32 > 192168032

}
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
}