dot

packages and services management
Log | Files | Refs | README

commit 1d94cf4080fa606120d2be92b7bac015dcd5594e
parent 07f201b46fb2b34f0c987cab6c7535ea43c693fb
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 12 Jun 2018 14:12:00 +0200

user directories to add skeleton files in

Diffstat:
Ruser/collectd -> user/collectd/add | 0
Duser/irc | 24------------------------
Auser/irc/add | 8++++++++
Auser/irc/attach | 15+++++++++++++++
Ruser/mail -> user/mail/add | 0
Ruser/qmail -> user/qmail/add | 0
Ruser/tor -> user/tor/add | 0
Ruser/u9fs -> user/u9fs/add | 0
Ruser/venti -> user/venti/add | 0
9 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/user/collectd b/user/collectd/add diff --git a/user/irc b/user/irc @@ -1,24 +0,0 @@ -#!/9/bin/rc -e - -user add -s /home/irc/attach -d /home/irc irc - -cat <<'EOF' >/home/irc/attach -#!/9/bin/rc -e -ifs=' -' -fn sigint {} - - -while (true) { - c=`{exec ls -d ./out */out */*/out | exec sed 's,/out,,' | exec iomenu} - if (~ $#c 1) switch (`{exec printf '%s\n' view chat | exec iomenu}) { - case view - eel <$c/out | less - case chat - exec tail -f -n 80 $c/out | exec eel | shuntty $c'> ' >$c/in - } -} -EOF - -chown irc /home/irc/attach -chmod +x /home/irc/attach diff --git a/user/irc/add b/user/irc/add @@ -0,0 +1,8 @@ +#!/9/bin/rc -e +# irc client holding the logs and to connect to to start chatting + +user add -s /home/irc/attach -d /home/irc irc + +cp "$(dirname "$0")/attach" /home/irc/attach +chown irc /home/irc/attach +chmod +x /home/irc/attach diff --git a/user/irc/attach b/user/irc/attach @@ -0,0 +1,15 @@ +#!/9/bin/rc -e +ifs=' +' +fn sigint {} + + +while (true) { + c=`{exec ls -d ./out */out */*/out | exec sed 's,/out,,' | exec iomenu} + if (~ $#c 1) switch (`{exec printf '%s\n' view chat | exec iomenu}) { + case view + eel <$c/out | less + case chat + exec tail -f -n 80 $c/out | exec eel | shuntty $c'> ' >$c/in + } +} diff --git a/user/mail b/user/mail/add diff --git a/user/qmail b/user/qmail/add diff --git a/user/tor b/user/tor/add diff --git a/user/u9fs b/user/u9fs/add diff --git a/user/venti b/user/venti/add