ref: 5e8c2b307bc565be7e9f03ce24957745d38cc555
parent: d9e9581806619108c84f7974ad529dda8769ec9b
author: Romano <me+git@fallglow.com>
date: Thu Jun 27 17:06:49 EDT 2024
autorun mntgen when needed
--- a/TODO
+++ b/TODO
@@ -1,4 +1,3 @@
-- autorun mntgen /n/x if needed so no setup required
- fix x/run ls -l @ root directory (seems to go to home dir instead)
- lib/x/builder@*/ <--- glob match
/run-pre
--- a/mnt
+++ b/mnt
@@ -25,5 +25,7 @@
hosts=`{x/path -l}
if(~ $#hosts 0)
usage
+if(! ls /n | grep -s '^/n/x$')
+ mntgen /n/x
for(h in $hosts)
mnt `{x/path -l $h}
--- a/x.man
+++ b/x.man
@@ -52,16 +52,6 @@
that can be used to access it, and the path relative to the
remote root - which are exploited by the programs described
here to provide some further convenience.
-.SH SETUP
-.PP
-Start
-.IR mntgen (4)
-with a mount point of
-.I /n/x
-somewhere convenient, perhaps in your profile:
-.EX
-; mntgen /n/x
-.EE
.SH COMMANDS
.PP
.B x/mnt