shithub: privategrid

ref: dc2e5212f228d7a43b8fe331da9f9675f72b90bb
dir: /gridstart/09plumber/

View raw version
#!/bin/rc

#myip=107.191.50.176
rimport -a cpu64 /srv
mount -c /srv/registry /mnt/registry
mount /srv/gridram /n/gridram
mount /srv/boot /n/gridroot
auth/factotum
#echo 'key proto=dp9ik user=glenda dom=grid !password=9gridchan' >/mnt/factotum/ctl
#echo 'none
#none
#' | ftpfs tcp!cpu64!10021
bind -c /n/ftp/incoming /n/gridftp
bind  /usr/none/incoming /n/griddisk
bind  /usr/none/incoming /n/gridftp
cd $home/gridmods
hub -b listenplumber
mount /srv/listenplumber /n/listenplumber
echo 'safeplumber/8.plumber -p gridplumbrules' >>/n/listenplumber/io0
sleep 1
chmod 666 /srv/plumb.glenda*
echo 'gridlisten1 -tv -d gridplumber -m /mnt/plumb tcp!*!9998 /bin/exportfs -S ' /srv/plumb.glenda* >>/n/listenplumber/io0
hub -b listenplumbertls
mount /srv/listenplumbertls /n/listenplumbertls
echo 'gridlisten1 -tv -d gridplumber -m /mnt/plumb tcp!*!19998 tlssrv -A /bin/aux/trampoline tcp!127.1!9998' >>/n/listenplumbertls/io0