dot

packages and services management
Log | Files | Refs | README

commit d917b38e45be74e6d9dc49d6c5e419cef27ea331
parent 3c48da5ab78e570ccdd48d502219b45101495e11
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 27 Mar 2018 12:10:17 +0200

run fix scripts

Diffstat:
Arunit/authsrv9/bin/authsrv9 | 0
Mrunit/authsrv9/run | 2+-
Mrunit/u9fs/.gitignore | 2+-
Arunit/u9fs/pass | 14++++++++++++++
Mrunit/u9fs/run | 9++++-----
5 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/runit/authsrv9/bin/authsrv9 b/runit/authsrv9/bin/authsrv9 Binary files differ. diff --git a/runit/authsrv9/run b/runit/authsrv9/run @@ -19,7 +19,7 @@ mkdir -p dev # for /dev/log, for syslog mkdir -p bin # for the binary authsrv="$(command -v authsrv9)" [ -h "$authsrv" ] && authsrv="$(readlink -f "$authsrv")" -ln -f "$authsrv" bin/authsrv9 +install -m750 -o root "$authsrv" bin/authsrv9 [ -f "auth/users/josuah/key" ] [ -f "auth/users/bootes/key" ] diff --git a/runit/u9fs/.gitignore b/runit/u9fs/.gitignore @@ -1 +1 @@ -u9fs.key +key diff --git a/runit/u9fs/pass b/runit/u9fs/pass @@ -0,0 +1,14 @@ +#!/bin/sh -e + +[ ! -f key ] + +stty -echo +printf 'password: ' +sed q >key +printf '\n' +stty echo + +printf 'bootes\n' >>key +printf 'local\n' >>key + +chmod 600 key diff --git a/runit/u9fs/run b/runit/u9fs/run @@ -9,14 +9,13 @@ path="/usr/ufs1" exec 2>&1 -printf 'bootes\n' > u9fs.key -printf 'local\n' >> u9fs.key -dd if=/dev/random bs=32 count=1 | od -xAn | tr -cd 0-9a-f >> u9fs.key -chmod 600 u9fs.key +sv start authsrv9 + +chmod 600 key exec tcpserver 0.0.0.0 "$port" u9fs \ -u "$(whoami)" \ -l /dev/stderr \ - -A u9fs.key + -A key \ -a p9any \ "$path"