shithub: rc

ref: ae16de57e6157c784d2857813c400c7a7dcb857b
dir: /bin/9grid.old/

View raw version
#!/bin/rc -e
rfork n

auth/factotum -n
echo 'key proto=dp9ik user=glenda dom=grid !password=9gridchan' >/mnt/factotum/ctl
srvtls tcp!registry.9gridchan.org!16675 gridreg /n/gridreg
sed -n '/gridregistry/d;/tlssrv/{s/^/srvtls -c /;s/(is |mountpoint|service.*$)//g;s/pubregistry/gridpubreg/g;p;}' /n/gridreg/index | grep -v gridplumb | rc
rm /srv/grid*
#echo 'none
#none' | `{sed -n 's/^([^ ]+).* is gridftp.*/ftpfs -\/ \1/p' /n/gridreg/index}
#bind -c /n/ftp/incoming /n/gridftp

unmount /mnt/plumb
bof -k '
window -scroll chat -n qwx
window -scroll girc -g /n/chat/chat
' || status=''

for(i in /mnt/plumb /n/grid* /mnt/wiki /n/chat)
	unmount $i
#unmount /n/gridftp
#unmount /n/ftp