dot

packages and services management
Log | Files | Refs | README

commit fff627acaff846e300cdb4061f1c82669e7180f2
parent a2f8ced0d112ddaab28bf6a7aaadf945a9a4d5c5
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 18 Feb 2018 15:01:36 +0100

git-daemon as inetd server

Diffstat:
Mbin/clip | 7+++----
Mbin/wifi | 3+++
Mskel/inetd.conf | 1+
3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/bin/clip b/bin/clip @@ -6,15 +6,14 @@ touch "$CLIP" chmod 600 "$CLIP" case "$1" in -(-i) +(i|in) shift cat "$@" > "$CLIP" ;; -(-o) +(o|out) cat "$CLIP" ;; (*) - echo 'usage: clip -i [file...]' - echo ' clip -o' + echo 'usage: clip i[n] | o[ut] [file...]' ;; esac diff --git a/bin/wifi b/bin/wifi @@ -6,4 +6,7 @@ case "$(uname)" in (*BSD) doas ifconfig iwm0 nwid "$1" wpa wpakey "0x$2" ;; +(*) + echo 'unsupported system' + ;; esac diff --git a/skel/inetd.conf b/skel/inetd.conf @@ -5,6 +5,7 @@ #http stream tcp nowait nobody /XXX/bin/ghttp ghttp josuah.net #gopher stream tcp nowait nobody /XXX/bin/geomyidae geomyidae -b XXX/srv -h josuah.net #rsync stream tcp nowait nobody /XXX/bin/rsyncd rsyncd --daemon +#git stream tcp nowait nobody /XXX/bin/git git daemon --inetd --export-all /XXX/git #/tmp/irc.cyberia.is stream unix nowait nobody /XXX/bin/openssl openssl s_client -quiet -connect irc.cyberia.is:6697 #/tmp/unix.chat stream unix nowait nobody /XXX/bin/openssl openssl s_client -quiet -connect unix.chat:6697