dot

packages and services management
Log | Files | Refs | README

commit f5375ec19c4b725b9ff75af2df238829ef98a3b4
parent 5a9f5bc21a407f16dd8e7f27ab58a8be80543c17
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 30 Mar 2018 20:02:56 +0200

9pfs mount script in supervision as well in case ssh freeze

Diffstat:
Arun/9pfs/path | 1+
Arun/9pfs/run | 12++++++++++++
Arun/9pfs/sock | 1+
3 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/run/9pfs/path b/run/9pfs/path @@ -0,0 +1 @@ +/mnt/9p diff --git a/run/9pfs/run b/run/9pfs/run @@ -0,0 +1,12 @@ +#!/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 9pfs -U "$sock" "$path" diff --git a/run/9pfs/sock b/run/9pfs/sock @@ -0,0 +1 @@ +/tmp/u9fs