code: 9ferno

Download patch

ref: 936531f717952ae190972fff5ae98788720d2241
parent: deff3b8f46a356e28cf4108ec62f27f8cbb3b78b
author: henesy <unknown>
date: Wed Mar 13 11: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