shithub: purgatorio

Download patch

ref: a920c765f2b4130590fb5971a50690b21664957a
parent: d4f4b292ca9c8665ef938036340ff32bf5128755
author: henesy <devnull@localhost>
date: Wed Mar 13 06:33:35 EDT 2019

start ndb/cs to allow name resolution in mounts ;; add mycroftiv public grid scripts by pete: gridstart, engridden, hubchat

--- /dev/null
+++ b/dis/engridden
@@ -1,0 +1,10 @@
+#!/dis/sh
+# If used with `run /dis/engridden`, will load public grid resources into the current namespace
+load std
+
+mount -Ac tcp!registry.9gridchan.org!6675 /mnt/registry
+
+grep 'service /bin/exportfs' /mnt/registry/index | getlines {
+	(srv is srvname mountpoint mpath rest) := ${split ' ' $line}
+	mount -Ac $srv $mpath
+}
--- /dev/null
+++ b/dis/gridstart
@@ -1,0 +1,17 @@
+#!/dis/sh
+# Connect to mycroftiv's public grid services
+load std
+
+echo '/n/griddisk
+/fonts/vga/unicode.font
+/fonts/vga/unicode.font
+          0          66
+f          1           1          36          36           3 
+          1          33          36           1           0 /n/griddisk/ Del Snarf Get | Look 
+F          1           1          15          15          28          15 
+          2          23          15           0           1  Del Snarf Undo | Look 
+Wiki /mnt/wiki' >/tmp/gridacme
+
+run /dis/engridden
+wm/sh -c hubchat
+acme -l/tmp/gridacme
--- /dev/null
+++ b/dis/hubchat
@@ -1,0 +1,11 @@
+#!/dis/sh
+# Connect to mycroftiv's public grid chat
+load std
+
+cat /n/chat/chat &
+echo JOIN $user from Inferno! >>/n/chat/chat
+# echo -n '> ' >[1=2]
+getlines{
+	echo $user → $line
+#	echo -n '> ' >[1=2]
+}>>/n/chat/chat
--- a/lib/sh/profile
+++ b/lib/sh/profile
@@ -14,8 +14,11 @@
 bind -b '#s' /chan
 
 # Networking
-bind -b '#scs' /net
+ndb/dns -r
+ndb/cs
+# bind -b '#scs' /net
 mount {mntgen} /n
+mount {mntgen} /mnt
 
 # Run the user's profile
 cd