dot

packages and services management
Log | Files | Refs | README

commit 2479d6cb62b585661541b6e06d36f3bca64a5da6
parent 7088cbfc84693d1ddfe2273b9b36e1e4295379e4
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  5 Apr 2018 03:35:47 +0200

merged 9pfs and u9fs into a same directory

Diffstat:
Mgit/config | 2+-
Drun/9pfs-ssh/path | 1-
Drun/9pfs-ssh/run | 12------------
Drun/9pfs-ssh/sock | 1-
Drun/brssl/run | 8--------
Arun/u9fs-ssh/9pfs | 9+++++++++
Rrun/u9fs-unix/host -> run/u9fs-ssh/host | 0
Arun/u9fs-ssh/path-dst | 2++
Rrun/u9fs-unix/path -> run/u9fs-ssh/path-src | 0
Arun/u9fs-ssh/run | 15+++++++++++++++
Rrun/u9fs-unix/sock -> run/u9fs-ssh/sock | 0
Rrun/u9fs-unix/user -> run/u9fs-ssh/user | 0
Drun/u9fs-unix/run | 14--------------
Arun/u9fs/9pfs | 9+++++++++
Arun/u9fs/path-dst | 2++
Rrun/u9fs/path -> run/u9fs/path-src | 0
16 files changed, 38 insertions(+), 37 deletions(-)

diff --git a/git/config b/git/config @@ -10,7 +10,7 @@ $(git diff | grep ^- | wc -l) [core] - editor = vi + editor = B [push] default = simple diff --git a/run/9pfs-ssh/path b/run/9pfs-ssh/path @@ -1 +0,0 @@ -/mnt/9p diff --git a/run/9pfs-ssh/run b/run/9pfs-ssh/run @@ -1,12 +0,0 @@ -#!/bin/sh -ex - -# mount a 9p filesystem from a local UNIX socket - -exec 2>&1 - -IFS='' read -r path <path -IFS='' read -r sock <sock - -mkdir -p "$path" - -exec chpst -P 9pfs -U "$sock" "$path" & diff --git a/run/9pfs-ssh/sock b/run/9pfs-ssh/sock @@ -1 +0,0 @@ -/tmp/u9fs diff --git a/run/brssl/run b/run/brssl/run @@ -1,8 +0,0 @@ -#!/bin/sh -e - -host="$(cd "$0/.." && pwd | sed 's:.*/brssl-::')" -port="6697" -path="/tmp" - -exec 2>&1 -exec unixserver "$path/$host" brssl client "$host:$port" diff --git a/run/u9fs-ssh/9pfs b/run/u9fs-ssh/9pfs @@ -0,0 +1,9 @@ +#!/bin/sh -e + +# mount a 9p filesystem from a local UNIX socket + +IFS='' read -r sock <sock +IFS='' read -r path <path-dst + +mkdir -p "$path" +9pfs -U "$sock" "$path" & diff --git a/run/u9fs-unix/host b/run/u9fs-ssh/host diff --git a/run/u9fs-ssh/path-dst b/run/u9fs-ssh/path-dst @@ -0,0 +1 @@ +/mnt/9p+ \ No newline at end of file diff --git a/run/u9fs-unix/path b/run/u9fs-ssh/path-src diff --git a/run/u9fs-ssh/run b/run/u9fs-ssh/run @@ -0,0 +1,15 @@ +#!/bin/sh -e + +# forward u9fs from a remote host to a local socket through ssh + +exec 2>&1 + +IFS='' read -r sock <sock +IFS='' read -r host <host +IFS='' read -r user <user +IFS='' read -r path <path-src + +exec unixserver -v "$sock" ssh "$user@$host" '. ./.profile;' u9fs \ + -a none \ + -u "$user" \ + "'$path'" diff --git a/run/u9fs-unix/sock b/run/u9fs-ssh/sock diff --git a/run/u9fs-unix/user b/run/u9fs-ssh/user diff --git a/run/u9fs-unix/run b/run/u9fs-unix/run @@ -1,14 +0,0 @@ -#!/bin/sh -e - -# forward u9fs from a remote host to a local socket through ssh - -exec 2>&1 - -IFS='' read -r host <host -IFS='' read -r user <user -IFS='' read -r path <path - -exec unixserver -v /tmp/u9fs ssh "$user@$host" '. ./.profile;' u9fs \ - -a none \ - -u "$user" \ - "'$path'" diff --git a/run/u9fs/9pfs b/run/u9fs/9pfs @@ -0,0 +1,9 @@ +#!/bin/sh -e + +# mount a 9p filesystem from a remote host + +IFS='' read -r host <host +IFS='' read -r path <path-dst + +mkdir -p "$path" +9pfs "$host" "$path" diff --git a/run/u9fs/path-dst b/run/u9fs/path-dst @@ -0,0 +1 @@ +/mnt/9p+ \ No newline at end of file diff --git a/run/u9fs/path b/run/u9fs/path-src