shithub: rc

Download patch

ref: 01dc43368b70463fd001b30073ed492707e6ae0e
parent: a42c02c6fd44eedf43d1e14779df0ac9baf86edd
author: qwx <qwx@sciops.net>
date: Sun Nov 1 14:07:23 EST 2020

9grid: unstupid namespace and rio -k

--- a/9grid
+++ b/9grid
@@ -1,5 +1,6 @@
 #!/bin/rc -e
 rfork n
+
 auth/factotum
 echo 'key proto=dp9ik user=glenda dom=grid !password=9gridchan' >/mnt/factotum/ctl
 srvtls tcp!registry.9gridchan.org!16675 gridreg /n/gridreg
@@ -8,12 +9,14 @@
 #echo 'none
 #none' | `{sed -n 's/^([^ ]+).* is gridftp.*/ftpfs -\/ \1/p' /n/gridreg/index}
 #bind -c /n/ftp/incoming /n/gridftp
-#rio -k 'window -r 813 1702 1001 1878 page -i; window -r 330 1122 1002 1880 mothra; window -r 4 1123 1001 1583 -scroll chat -n qwx; window -scroll grep -bi ''''2600|q[uw7]+x|qk[12]|quake|doom|wl3d|wolf|igfx|vmx|glenda ⇒.*http'''' /n/chat/chat' || status=''
-rio -k 'window -scroll chat -n qwx; window -scroll grep -bi ''''2600|q[uw7]+x|qk[12]|quake|doom|wl3d|wolf|igfx|vmx|glenda ⇒.*http' /n/chat/chat'''' || status=''
+
 unmount /mnt/plumb
+rio -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
-for(i in /n/grid*)
-	unmount $i
-unmount /mnt/wiki
-unmount /n/chat