ref: f5df6f147da7f3f4ea4179f460b611fb87ad407f
dir: /gaff/
#!/bin/rc -x
# 2024-02-22T22:50:17-05:00
rfork e
host=gaff.inri.net
auth=auth.inri.net
sys=`{echo $host | awk -F '.' '{print $1}'}
switch($1){
case -b
gaff -c 'pager=() mother -b'
case -m
rimport -c -p -s $sys $host / /n/$sys
case *
if(~ $service cpu terminal){
label $sys
rcpu -h $host $*
}
if not
drawterm -h $host -a $auth $*
}