ref: 868199693c0e43738de8cf0443ae5b7333af4dcb
parent: 3e6dc22ba80448d7462f3a88beb7c6d1973113eb
author: qwx <qwx@sciops.net>
date: Fri Sep 10 17:26:12 EDT 2021
*rio: update for plumber change
--- a/bin/cinrio
+++ b/bin/cinrio
@@ -1,12 +1,8 @@
#!/bin/rc -e
truetypefs
font=/n/ttf/unifont.ttf.16/font
-plumber
+plumber -s plumb.$pid
plumbsrv=()
rio
unmount /mnt/plumb
-# fuck you rc
-if(! ~ $#plumbsrv 0)
- rm $plumbsrv
-if not
- die plumber $pid
+rm /srv/plumb.$pid
--- a/bin/mailrio
+++ b/bin/mailrio
@@ -4,6 +4,9 @@
echo usage: $0 mbox upasname >[1=2]
exit usage
}
+unmount /mnt/plumb
+plumbsrv=()
+plumber -s plumb.$pid
upas/fs -f $1 >>[2]/tmp/mailrio.log || exit
upasname=$2
wsz=`{read -c 48 /mnt/wsys/wctl}
@@ -13,9 +16,6 @@
`{echo $wsz(3) - $wsz(1) | pc -n} \
116 \
)
-unmount /mnt/plumb
-plumbsrv=()
-plumber
cat <<! >/tmp/mailrio.$pid
#!/bin/rc
window -r $facerect faces -i
@@ -25,8 +25,4 @@
rm /tmp/mailrio.$pid
unmount /mail/fs
unmount /mnt/plumb
-# fuck you rc
-if(! ~ $#plumbsrv 0)
- rm $plumbsrv
-if not
- die plumber $pid
+rm /srv/plumb.$pid