dot

packages and services management
Log | Files | Refs | README

commit c8eeac326dc59f27e8ab1340a08bf8dc962b7572
parent 6c8531f981716b78ce52864d28e0a9fe9ed75021
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 20 Jul 2018 01:18:31 +0200

/fs hierarchy

Diffstat:
Abin/fs-check | 12++++++++++++
Abin/fs-make | 12++++++++++++
Abin/fs-mount | 14++++++++++++++
Abin/fs-umount | 10++++++++++
Afs/key/check | 3+++
Afs/key/dev | 1+
Afs/key/fstype | 1+
Afs/key/mount/... | 0
Afs/key/opts | 0
Afs/lib/check | 2++
Afs/lib/dev | 1+
Afs/lib/fstype | 1+
Afs/lib/mount-opts | 0
Afs/lib/mount/... | 0
Afs/lib/rdev | 2++
Auser/git/configure | 18++++++++++++++++++
16 files changed, 77 insertions(+), 0 deletions(-)

diff --git a/bin/fs-check b/bin/fs-check @@ -0,0 +1,12 @@ +#!/bin/sh -e + +if test $# != 1 +then echo 'usage: fs-check name' + echo '' + ls /fs/ + exit 1 +fi + +IFS='' read -r dev </fs/$1/dev + +exec "/fs/$1/check" "$dev" diff --git a/bin/fs-make b/bin/fs-make @@ -0,0 +1,12 @@ +#!/bin/sh -e + +if test $# != 1 +then echo 'usage: fs-mount name' + echo '' + ls /fs/ + exit 1 +fi + +IFS='' read -r dev </fs/$1/dev + +exec "/fs/$1/make" "$dev" diff --git a/bin/fs-mount b/bin/fs-mount @@ -0,0 +1,14 @@ +#!/bin/sh -e + +if test $# != 1 +then echo 'usage: fs-mount name' + echo '' + ls /fs/ + exit 1 +fi + +IFS='' read -r fstype </fs/$1/fstype +IFS='' read -r opts </fs/$1/opts +IFS='' read -r dev </fs/$1/dev + +exec mount -t "$fstype" -o "$opts" "$dev" "/fs/$1/mount" diff --git a/bin/fs-umount b/bin/fs-umount @@ -0,0 +1,10 @@ +#!/bin/sh -e + +if test $# != 1 +then echo 'usage: fs-umount name' + echo '' + ls /fs/ + exit 1 +fi + +exec umount "/fs/$1/mount" diff --git a/fs/key/check b/fs/key/check @@ -0,0 +1,3 @@ +#!/bin/sh -e + +exec fsck.vfat "$@" diff --git a/fs/key/dev b/fs/key/dev @@ -0,0 +1 @@ +/dev/sdb diff --git a/fs/key/fstype b/fs/key/fstype @@ -0,0 +1 @@ +fat diff --git a/fs/key/mount/... b/fs/key/mount/... diff --git a/fs/key/opts b/fs/key/opts diff --git a/fs/lib/check b/fs/lib/check @@ -0,0 +1,2 @@ +#!/bin/sh -e +exit 1 diff --git a/fs/lib/dev b/fs/lib/dev @@ -0,0 +1 @@ +/dev/sdb diff --git a/fs/lib/fstype b/fs/lib/fstype @@ -0,0 +1 @@ +9p diff --git a/fs/lib/mount-opts b/fs/lib/mount-opts diff --git a/fs/lib/mount/... b/fs/lib/mount/... diff --git a/fs/lib/rdev b/fs/lib/rdev @@ -0,0 +1 @@ +dev+ \ No newline at end of file diff --git a/user/git/configure b/user/git/configure @@ -0,0 +1,18 @@ +#!/bin/sh -e + +cd /data/git/ + +git-mirror git://josuah.net/bitfly +git-mirror git://josuah.net/conf +git-mirror git://josuah.net/drawille-el +git-mirror git://josuah.net/eel +git-mirror git://josuah.net/ff2txt +git-mirror git://josuah.net/hty +git-mirror git://josuah.net/ics2txt +git-mirror git://josuah.net/iomenu +git-mirror git://josuah.net/josuah.net +git-mirror git://josuah.net/ploot +git-mirror git://josuah.net/plstree +git-mirror git://josuah.net/tttml + +chown -R /data/git/